#include <bits/stdc++.h>
char s[1000008];
int main() {
  int r, g, b;
  while ((scanf("%d %d %d", &r, &g, &b)) != EOF) {
    if (r % 2 == 0)
      r = r / 2;
    else
      r = r / 2 + 1;
    if (g % 2 == 0)
      g = g / 2;
    else
      g = g / 2 + 1;
    if (b % 2 == 0)
      b = b / 2;
    else
      b = b / 2 + 1;
    if (r > g && r > b)
      printf("%d\n", 30 + (r - 1) * 3);
    else {
      if (g >= r && g > b)
        printf("%d\n", 30 + (g - 1) * 3 + 1);
      else {
        if (b >= r && b >= r) printf("%d\n", 30 + (b - 1) * 3 + 2);
      }
    }
  }
}
