#include <bits/stdc++.h>
using namespace std;
int main() {
  int stud[3];
  cin >> stud[0] >> stud[1] >> stud[2];
  int res = 29;
  int s = 0;
  while (stud[0] + stud[1] + stud[2] > 0) {
    stud[s] -= min(2, stud[s]);
    s = (s + 1) % 3;
    res++;
  }
  cout << res;
  return 0;
}
