#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, g, b, x[3];
  cin >> r >> g >> b;
  r = (r + 1) / 2;
  g = (g + 1) / 2;
  b = (b + 1) / 2;
  x[0] = 3 * (r - 1);
  x[1] = 1 + 3 * (g - 1);
  x[2] = 2 + 3 * (b - 1);
  sort(x, x + 3);
  cout << 30 + x[2];
}
