#include <bits/stdc++.h>
using namespace std;
mt19937 gen(chrono::steady_clock::now().time_since_epoch().count());
template <typename T1, typename T2>
ostream& operator<<(ostream& out, const pair<T1, T2>& p) {
  out << p.first << " " << p.second;
  return out;
}
void solve() {
  int a, b, c, t = -1;
  cin >> a >> b >> c;
  while (a || b || c) {
    t++;
    if (t % 3 == 0) {
      a -= min(a, 2);
    } else if (t % 3 == 1) {
      b -= min(b, 2);
    } else {
      c -= min(c, 2);
    }
  }
  cout << t + 30 << '\n';
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t = 1;
  for (int cas = 1; cas <= t; cas++) {
    solve();
  }
  return 0;
}
