#include <bits/stdc++.h>
int main() {
  int r, g, b, x, y, z, max, count;
  scanf("%d%d%d", &r, &g, &b);
  x = ceil(r * 1.0 / 2);
  y = ceil(g * 1.0 / 2);
  z = ceil(b * 1.0 / 2);
  max = x;
  if (y > max) max = y;
  if (z > max) max = z;
  if (z == max)
    if (b / 2 == z)
      count = 30 + (b / 2 - 1) * 3 + 2;
    else
      count = 30 + (z - 1) * 3 + 2;
  else if (y == max)
    if (g / 2 == y)
      count = 30 + (g / 2 - 1) * 3 + 1;
    else
      count = 30 + (y - 1) * 3 + 1;
  else if (x == max)
    if (r / 2 == x)
      count = 30 + (r / 2 - 1) * 3;
    else
      count = 30 + (x - 1) * 3;
  printf("%d\n", count);
  return 0;
}
