#include <bits/stdc++.h>
using namespace std;
int r, g, b, rh, gh, bh;
int main() {
  scanf("%d%d%d", &r, &g, &b);
  rh = (r / 2) + r % 2;
  gh = (g / 2) + g % 2;
  bh = (b / 2) + b % 2;
  rh = 27 + (rh * 3);
  gh = 28 + (gh * 3);
  bh = 29 + (bh * 3);
  printf("%d\n", max(rh, max(gh, bh)));
  return 0;
}
