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