#include <bits/stdc++.h>
int main() {
  long r, g, b;
  while (~scanf("%ld%ld%ld", &r, &g, &b)) {
    long k = 0;
    while (1) {
      r = r - 2;
      k++;
      if ((r <= 0 && g <= 0) && (r <= 0 && b <= 0)) break;
      g = g - 2;
      k++;
      if ((r <= 0 && g <= 0) && (r <= 0 && b <= 0)) break;
      b = b - 2;
      k++;
      if ((r <= 0 && g <= 0) && (r <= 0 && b <= 0)) break;
    }
    printf("%ld\n", k + 29);
  }
  return 0;
}
