#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.precision(10);
  int r, g, b, t{};
  cin >> r >> g >> b;
  while (1) {
    r = max(0, r - 2);
    if (r + g + b == 0) break;
    ++t;
    g = max(0, g - 2);
    if (r + g + b == 0) break;
    ++t;
    b = max(0, b - 2);
    if (r + g + b == 0) break;
    ++t;
  }
  cout << t + 30 << endl;
  return 0;
}
