#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int r, g, b;
  cin >> r >> g >> b;
  int a[3] = {r, g, b};
  int i = 0;
  while (a[0] > 0 || a[1] > 0 || a[2] > 0) {
    if (a[i % 3] > 0) a[i % 3] -= 2;
    i++;
  }
  cout << 30 + i - 1;
  return 0;
}
