#include <bits/stdc++.h>
int main() {
  int r, g, b;
  while (scanf("%i %i %i", &r, &g, &b) > 0) {
    if (b != 0) b = ((b - 1) / 2 * 3) + 32;
    if (g != 0) g = ((g - 1) / 2 * 3) + 31;
    if (r != 0) r = ((r - 1) / 2 * 3) + 30;
    if (b >= g && b >= r)
      printf("%i\n", b);
    else {
      if (g >= r)
        printf("%i\n", g);
      else
        printf("%i\n", r);
    }
  }
  return 0;
}
