#include <bits/stdc++.h>
using namespace std;
int r, g, b;
int main() {
  scanf("%d%d%d", &r, &g, &b);
  int nr = r / 2 + r % 2;
  int ng = g / 2 + g % 2;
  int nb = b / 2 + b % 2;
  int res = 3 * (nr - 1) + 30;
  res = max(1 + 3 * (ng - 1) + 30, res);
  res = max(res, 2 + 3 * (nb - 1) + 30);
  printf("%d\n", res);
  return 0;
}
