#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  int ans = 29;
  while (a + b + c > 0) {
    if (a + b + c > 0) ans += 1;
    if (a > 0) {
      a = max(0, a - 2);
    }
    if (a + b + c > 0) ans += 1;
    if (b > 0) {
      b = max(0, b - 2);
    }
    if (a + b + c > 0) ans += 1;
    if (c > 0) {
      c = max(0, c - 2);
    }
  }
  cout << ans << endl;
}
