#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, g, b;
  cin >> r >> g >> b;
  int ans = 0;
  int nr = (((r / 2) + (r % 2)) - 1) * 3 + 30;
  int ng = 1 + (((g / 2) + (g % 2)) - 1) * 3 + 30;
  int nb = 2 + (((b / 2) + (b % 2)) - 1) * 3 + 30;
  ans = nr;
  if (ng > ans) ans = ng;
  if (nb > ans) ans = nb;
  cout << ans << endl;
  return 0;
}
