#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  int ans = 30;
  if (a > 0) ans = max(ans, 30 + (a - 1) / 2 * 3);
  if (b > 0) ans = max(ans, 31 + (b - 1) / 2 * 3);
  if (c > 0) ans = max(ans, 32 + (c - 1) / 2 * 3);
  printf("%d\n", ans);
  cin.get();
  return 0;
}
