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