#include <bits/stdc++.h>
using namespace std;
long a, b, c, ans, x, y, z;
int main() {
  scanf("%d%d%d", &a, &b, &c);
  long l = 0;
  ans = 29;
  while (a > 0 || b > 0 || c > 0) {
    ans++;
    l = l % 3;
    if (l == 0) a -= 2;
    if (l == 1) b -= 2;
    if (l == 2) c -= 2;
    l++;
  }
  printf("%d\n", ans);
}
