#include <bits/stdc++.h>
int main() {
  int i, j, k, s[3], sum = 0;
  scanf("%d %d %d", &s[0], &s[1], &s[2]);
  k = (s[0] + 1) / 2;
  j = 0;
  for (i = 1; i < 3; i++)
    if ((s[j] + 1) / 2 <= (s[i] + 1) / 2) {
      k = (s[i] + 1) / 2;
      j = i;
    }
  sum = sum + 30 + (k - 1) * 3 + j;
  printf("%d", sum);
  return 0;
}
