#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, g, b, sum = 30, con = 0;
  cin >> r >> g >> b;
  int c = r;
  while (true) {
    con++;
    if (r <= 0 && g <= 0 && b <= 0) {
      break;
    }
    sum++;
    if (r > 0) {
      r = r - 2;
    }
    if (r <= 0 && g <= 0 && b <= 0) {
      break;
    }
    sum++;
    if (g > 0) {
      g = g - 2;
    }
    if (r <= 0 && g <= 0 && b <= 0) {
      break;
    }
    sum++;
    if (b > 0) {
      b = b - 2;
    }
  }
  if (sum == 30) {
    cout << sum << endl;
  } else
    cout << sum - 1 << endl;
  return 0;
}
