#include <bits/stdc++.h>
using namespace std;
int main() {
  int red, green, blue;
  cin >> red >> green >> blue;
  bool R = true, G = false, B = false;
  int count = 0;
  while (red > 0 || green > 0 || blue > 0) {
    if (R) {
      red -= 2;
      count++;
      R = false;
      G = true;
    } else if (G) {
      green -= 2;
      count++;
      G = false;
      B = true;
    } else if (B) {
      blue -= 2;
      count++;
      B = false;
      R = true;
    }
  }
  cout << 29 + count << endl;
  return 0;
}
