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