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