#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y, z, r = 30;
  cin >> x >> y >> z;
  char a = 'b';
  x = x - 2;
  while (x > 0 || y > 0 || z > 0) {
    if (a == 'b') {
      y = y - 2;
      a = 'g';
    } else if (a == 'g') {
      z = z - 2;
      a = 'r';
    } else if (a == 'r') {
      x = x - 2;
      a = 'b';
    }
    r++;
  }
  cout << r << endl;
}
