#include <bits/stdc++.h>
using namespace std;
int r, g, b;
int main() {
  scanf("%d%d%d", &r, &g, &b);
  int t = 0;
  while (r + g + b > 0) {
    if (t % 3 == 0) {
      if (r > 0) {
        if (r == 1)
          r = 0;
        else
          r -= 2;
      }
    } else if (t % 3 == 1) {
      if (g > 0) {
        if (g == 1)
          g = 0;
        else
          g -= 2;
      }
    } else if (t % 3 == 2) {
      if (b > 0) {
        if (b == 1)
          b = 0;
        else
          b -= 2;
      }
    }
    t++;
  }
  printf("%d\n", t + 29);
  return 0;
}
