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