#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, g, b;
  cin >> r >> g >> b;
  int cnt = 30;
  r -= 2;
  int turn = 2;
  while (r > 0 || g > 0 || b > 0) {
    if (turn == 1) {
      r -= 2;
      cnt++;
      turn++;
    } else if (turn == 2) {
      g -= 2;
      cnt++;
      turn++;
    } else if (turn == 3) {
      b -= 2;
      cnt++;
      turn = 1;
    }
  }
  cout << cnt << endl;
}
