#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base ::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long int test = 1;
  for (int loop = 0; loop < test; loop++) {
    long long int a, b, c;
    cin >> a >> b >> c;
    a = a % 2 ? a / 2 + 1 : a / 2;
    b = b % 2 ? b / 2 + 1 : b / 2;
    c = c % 2 ? c / 2 + 1 : c / 2;
    long long int value = 2 + (c - 1) * 3 + 30;
    long long int val = (a - 1) * 3 + 30;
    long long int vals = 1 + (b - 1) * 3 + 30;
    cout << max(vals, max(val, value)) << "\n";
  }
}
