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