#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, g, b;
  while (cin >> r >> g >> b) {
    r = r % 2 ? (r / 2 + 1) : (r / 2);
    g = g % 2 ? (g / 2 + 1) : (g / 2);
    b = b % 2 ? (b / 2 + 1) : (b / 2);
    if (r >= g && r >= b) {
      if (r == b)
        cout << 3 * b + 29 << endl;
      else if (r == g)
        cout << 3 * g + 28 << endl;
      else
        cout << 3 * r + 27 << endl;
    } else if (g >= r && g >= b) {
      if (g == b)
        cout << 3 * b + 29 << endl;
      else
        cout << 3 * g + 28 << endl;
    } else if (b >= r && b >= g)
      cout << 3 * b + 29 << endl;
  }
  return 0;
}
