#include <bits/stdc++.h>
using namespace std;
int main() {
  int R, G, B, GR, GG, GB, Rmax = 0, Gmax = 0, Bmax = 0, Res;
  cin >> R >> G >> B;
  GR = R / 2 + (R & 1);
  GG = G / 2 + (G & 1);
  GB = B / 2 + (B & 1);
  if (GR) Rmax = 30 + (GR - 1) * 3;
  if (GG) Gmax = 31 + (GG - 1) * 3;
  if (GB) Bmax = 32 + (GB - 1) * 3;
  Res = max(Rmax, max(Gmax, Bmax));
  cout << Res;
  return 0;
}
