#include <bits/stdc++.h>
using namespace std;
int main() {
  int color[3], time = 30;
  for (int i = 0; i < 3; i++) cin >> color[i];
  int maxi = *max_element(color, color + 3);
  int index;
  if (maxi == color[0]) index = 0;
  if (maxi == color[1]) index = 1;
  if (maxi == color[2]) index = 2;
  int loop = ceil(maxi / 2.0);
  for (int i = 0; i < loop - 1; i++) time += 2;
  time += loop - 1;
  if (index == 2)
    time += 2;
  else if (index == 1)
    time++;
  int tmp = index;
  if ((maxi - 1) % 2 != 0) {
    if (maxi - 1 == color[0]) tmp = 0;
    if (maxi - 1 == color[1]) tmp = 1;
    if (maxi - 1 == color[2]) tmp = 2;
    if (tmp - index > 0) time += tmp - index;
  }
  cout << time;
  return 0;
}
