#include <bits/stdc++.h>
int main() {
  int t, i, j, n, a, b, c, tag;
  scanf("%d%d%d", &a, &b, &c);
  t = 29;
  tag = 0;
  if (a == 0 && b == 0 && c == 0) {
    printf("0\n");
    return 0;
  }
  while (a > 0 || b > 0 || c > 0) {
    t++;
    if (tag % 3 == 0) {
      a -= 2;
    } else if (tag % 3 == 1) {
      b -= 2;
    } else if (tag % 3 == 2) {
      c -= 2;
    }
    tag++;
  }
  printf("%d\n", t);
  return 0;
}
