#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int r, g, b;
  cin >> r >> g >> b;
  int ans = 0;
  int cnt = 0;
  while (r > 0 || g > 0 || b > 0) {
    if (ans % 3 == 0)
      r -= 2;
    else if (ans % 3 == 1)
      g -= 2;
    else if (ans % 3 == 2)
      b -= 2;
    ans++;
  }
  cout << ans + 29 << endl;
}
