#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, g, b;
  cin >> r >> g >> b;
  if (r % 2 == 0)
    r = r / 2;
  else
    r = r / 2 + 1;
  if (g % 2 == 0)
    g = g / 2;
  else
    g = g / 2 + 1;
  if (b % 2 == 0)
    b = b / 2;
  else
    b = b / 2 + 1;
  int tmp1 = 3 * (r - 1);
  int tmp2 = 3 * (g - 1) + 1;
  int tmp3 = 3 * (b - 1) + 2;
  tmp1 = max(tmp1, tmp2);
  tmp1 = max(tmp1, tmp3);
  cout << tmp1 + 30;
}
