#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c;
  cin >> a >> b >> c;
  bool d = 0;
  if (max(a + a % 2, max(b + b % 2, c + c % 2)) == c + c % 2) {
    if (c % 2 > 0) d = 1;
    cout << 30 + 3 * (c / 2 + d - 1) + 2;
  } else if (max(a + a % 2, max(b + b % 2, c + c % 2)) == b + b % 2) {
    if (b % 2 > 0) d = 1;
    cout << 30 + 3 * (b / 2 + d - 1) + 1;
  } else if (max(a + a % 2, max(b + b % 2, c + c % 2)) == a + a % 2) {
    if (a % 2 > 0) d = 1;
    cout << 30 + 3 * (a / 2 + d - 1);
  }
}
