#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int r, g, b;
  cin >> r >> g >> b;
  int total = 30;
  r = (r + 1) / 2;
  g = (g + 1) / 2;
  b = (b + 1) / 2;
  int mx = r;
  if (mx <= g) mx = g;
  if (mx <= b) mx = b;
  if (mx == b)
    total += mx * 3 - 1;
  else if (mx == g)
    total += (mx - 1) * 3 + 1;
  else if (mx == r)
    total += (mx - 1) * 3;
  cout << total << endl;
  return 0;
}
