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