#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, g, b;
  cin >> r >> g >> b;
  int t = 0;
  while (r > 0 || g > 0 || b > 0) {
    if (t % 3 == 0) {
      r = r - 2;
    } else if (t % 3 == 1) {
      g = g - 2;
    } else {
      b = b - 2;
    }
    t++;
  }
  cout << t + 29;
}
