#include <bits/stdc++.h>
using namespace std;
int get(int x) { return 30 + (x / 2 + x % 2 - 1) * 3; }
int main() {
  int a, b, c;
  while (cin >> a >> b >> c) {
    cout << max(max(get(a), get(b) + 1), get(c) + 2) << endl;
  }
  return 0;
}
