#include <bits/stdc++.h>
using namespace std;
char mp[102][102];
bool use[102][102];
int main() {
  int n, l, i, j, k, m, t, r, g, b;
  while (scanf("%d%d%d", &r, &g, &b) != EOF) {
    if (r > 2)
      r -= 2;
    else
      r = 0;
    n = r + g + b;
    int time = 30;
    while (n) {
      time++;
      int now = time % 3;
      if (g && now == 1) {
        if (g > 2) {
          g -= 2;
          n -= 2;
        } else {
          n -= g, g = 0;
        }
      } else if (b && now == 2) {
        if (b > 2) {
          b -= 2;
          n -= 2;
        } else {
          n -= b, b = 0;
        }
      } else if (r && now == 0) {
        if (r > 2) {
          r -= 2;
          n -= 2;
        } else {
          n -= r, r = 0;
        }
      }
    }
    printf("%d\n", time);
  }
}
