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