#include <bits/stdc++.h>
int n, k, m;
int r, g, b;
int main() {
  scanf("%d %d %d", &r, &g, &b);
  if (r > 0) n = (r - 1) / 2 * 3 + 30;
  if (g > 0) m = (g - 1) / 2 * 3 + 31;
  if (b > 0) k = (b - 1) / 2 * 3 + 32;
  if (n > m) m = n;
  if (k > m) m = k;
  printf("%d", m);
  return 0;
}
