#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, g, b, i = 0, tr = 0, tg = 0, tb = 0, t;
  cin >> r >> g >> b;
  if (r == 1) tr = 30;
  if (g == 1) tg = 31;
  if (b == 1) tb = 32;
  if (r % 2 == 0 && r >= 2) tr = 30 + (r / 2 - 1) * 3;
  if (g % 2 == 0 && g >= 2) tg = 31 + (g / 2 - 1) * 3;
  if (b % 2 == 0 && b >= 2) tb = 32 + (b / 2 - 1) * 3;
  if ((r % 2) != 0 && r >= 2) tr = 30 + (r / 2) * 3;
  if ((g % 2) != 0 && g >= 2) tg = 31 + (g / 2) * 3;
  if ((b % 2) != 0 && b >= 2) tb = 32 + (b / 2) * 3;
  t = tr;
  if (t <= tg) t = tg;
  if (t <= tb) t = tb;
  cout << t;
  return 0;
}
