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