#include <bits/stdc++.h>
int main(void) {
  int r, g, b, cnt = -1;
  scanf("%d%d%d", &r, &g, &b);
  for (;;) {
    if (r > 0) r -= 2;
    cnt++;
    if (r <= 0 && g <= 0 && b <= 0) break;
    if (g > 0) g -= 2;
    cnt++;
    if (r <= 0 && g <= 0 && b <= 0) break;
    if (b > 0) b -= 2;
    cnt++;
    if (r <= 0 && g <= 0 && b <= 0) break;
  }
  printf("%d\n", 30 + cnt);
  return 0;
}
