#include <bits/stdc++.h>
using namespace std;
map<string, long long> mp;
int main() {
  long long r, g, b, i, j = 0, k = -1;
  cin >> r >> g >> b;
  for (i = 1;; i++) {
    if (g > 0 || b > 0 || r > 0) {
      k++;
      if (i == 1) r -= 2;
      if (i == 2) g -= 2;
      if (i == 3) b -= 2;
    } else {
      break;
    }
    if (i == 3) {
      i = 0;
    }
  }
  cout << k + 30 << endl;
}
