#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, g, b, time = 30;
  cin >> r >> g >> b;
  int rt = ceil(r / 2.0);
  int gt = ceil(g / 2.0);
  int bt = ceil(b / 2.0);
  rt = rt - 1;
  if (rt < 0) {
    rt = 0;
  }
  while (true) {
    if (rt == 0 && gt == 0 && bt == 0) {
      break;
    }
    if (gt > 0) {
      gt = gt - 1;
    }
    time++;
    if (rt == 0 && gt == 0 && bt == 0) {
      break;
    }
    if (bt > 0) {
      bt = bt - 1;
    }
    time++;
    if (rt == 0 && gt == 0 && bt == 0) {
      break;
    }
    if (rt > 0) {
      rt = rt - 1;
    }
    time++;
  }
  cout << time;
  return 0;
}
