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