#include <bits/stdc++.h>
using namespace std;
const int INF = 1000000000;
const double EPS = 1e-9;
int main() {
  int x[3];
  scanf("%d %d %d", &x[0], &x[1], &x[2]);
  for (int i = 0; i < INF; i++) {
    if (i % 3 == 0)
      x[0] -= 2;
    else if (i % 3 == 1)
      x[1] -= 2;
    else if (i % 3 == 2)
      x[2] -= 2;
    x[0] = max(x[0], 0);
    x[1] = max(x[1], 0);
    x[2] = max(x[2], 0);
    if (x[0] + x[1] + x[2] == 0) {
      printf("%d\n", 30 + i);
      return 0;
    }
  }
  return 0;
}
