#include <bits/stdc++.h>
using namespace std;
int main(int argc, char** argv) {
  int r, g, b, time = 29;
  cin >> r >> g >> b;
  while (true) {
    r -= 2;
    time++;
    if (r <= 0 && g <= 0 && b <= 0) break;
    g -= 2;
    time++;
    if (r <= 0 && g <= 0 && b <= 0) break;
    b -= 2;
    time++;
    if (r <= 0 && g <= 0 && b <= 0) break;
  }
  cout << time;
  return 0;
}
