#include <bits/stdc++.h>
int main() {
  int ans, r, g, b;
  while (scanf("%d%d%d", &r, &g, &b) != EOF) {
    ans = 29;
    while (1) {
      ans++;
      r -= 2;
      if (r <= 0 && g <= 0 && b <= 0) break;
      ans++;
      g -= 2;
      if (r <= 0 && g <= 0 && b <= 0) break;
      ans++;
      b -= 2;
      if (r <= 0 && g <= 0 && b <= 0) break;
    }
    printf("%d\n", ans);
  }
  return 0;
}
