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