#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int maxVal = INT_MIN, maxIdx = -1, nbIters, num;
  for (int i = 0; i < 3; ++i) {
    cin >> num;
    nbIters = num / 2;
    if (num % 2 == 1) ++nbIters;
    if (nbIters >= maxVal) {
      maxVal = nbIters;
      maxIdx = i;
    }
  }
  cout << (maxVal * 3 - (2 - maxIdx)) + 29 << "\n";
}
