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