#include <bits/stdc++.h>
using namespace std;
static const double EPS = 1e-5;
int R, G, B;
int main() {
  while (cin >> R >> G >> B) {
    int res = -1;
    if (R != 0) {
      res = max(res, 30 + ((R - 1) / 2) * 3);
    }
    if (G != 0) {
      res = max(res, 31 + ((G - 1) / 2) * 3);
    }
    if (B != 0) {
      res = max(res, 32 + ((B - 1) / 2) * 3);
    }
    cout << res << endl;
  }
  return 0;
}
