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