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