#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 100 * 1000 + 10;
const int inf = (int)1e9;
const double eps = 1e-6;
int main() {
  int r, g, b;
  cin >> r >> g >> b;
  int rr = (((r + 1) / 2) - 1) * 3 + 30;
  int gg = (((g + 1) / 2) - 1) * 3 + 31;
  int bb = (((b + 1) / 2) - 1) * 3 + 32;
  cout << max(rr, max(bb, gg)) << endl;
  return 0;
}
