#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  int Time = 0;
  a -= 2;
  int Turn = 2;
  while (a > 0 || b > 0 || c > 0) {
    if (Turn == 1) {
      Time++;
      a -= 2;
      Turn = 2;
    } else if (Turn == 2) {
      Time++;
      b -= 2;
      Turn = 3;
    } else if (Turn == 3) {
      Time++;
      c -= 2;
      Turn = 1;
    }
  }
  Time += 30;
  cout << Time;
}
