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