#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;
  if (b >= g && b >= r) {
    cout << 30 + 3 * b - 1;
  } else if (g >= r && g > b) {
    cout << 30 + 3 * g - 2;
  } else
    cout << 30 + 3 * (r - 1);
  return 0;
}
