#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int r, g, b, ans = 0, maks = 0, temp, i = 1;
  cin >> r >> g >> b;
  ans = 30;
  r -= 2;
  while (r > 0 || g > 0 || b > 0) {
    ans += 1;
    if (i % 3 == 0)
      r -= 2;
    else if (i % 3 == 1)
      g -= 2;
    else
      b -= 2;
    i += 1;
  }
  cout << ans << endl;
  return 0;
}
