#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1.0);
const double EPS = 1e-9;
int main() {
  int rgb[3];
  cin >> rgb[0] >> rgb[1] >> rgb[2];
  for (int i = 0; i < 3; i++) {
    rgb[i] = (rgb[i] + 1) / 2;
  }
  int ptr = -1;
  for (int i = 0; i < 3; i++) {
    ptr = max(ptr, rgb[i]);
  }
  if (ptr == rgb[2])
    cout << (rgb[2] - 1) * 3 + 32 << endl;
  else if (ptr == rgb[1])
    cout << (rgb[1] - 1) * 3 + 31 << endl;
  else if (ptr == rgb[0])
    cout << (rgb[0] - 1) * 3 + 30 << endl;
  return 0;
}
