#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, g, b, br, rr, gr, mintim;
  cin >> r >> g >> b;
  br = ceil((float)b / 2);
  rr = ceil((float)r / 2);
  gr = ceil((float)g / 2);
  if (br >= gr && br >= rr) {
    mintim = 32 + (br - 1) * 3;
  } else if (rr > gr && rr > br) {
    mintim = 30 + (rr - 1) * 3;
  } else {
    mintim = 31 + (gr - 1) * 3;
  }
  cout << mintim;
  return 0;
}
