#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, g, b, t;
  cin >> r >> g >> b;
  t = 0;
  for (;;) {
    if (r > 0) r -= 2;
    t++;
    if ((r <= 0) && (g <= 0) && (b <= 0)) break;
    if (g > 0) g -= 2;
    t++;
    if ((r <= 0) && (g <= 0) && (b <= 0)) break;
    if (b > 0) b -= 2;
    t++;
    if ((r <= 0) && (g <= 0) && (b <= 0)) break;
  }
  t += 30 - 1;
  cout << t;
  return 0;
}
