#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using str = string;
using pi = pair<int, int>;
using pl = pair<ll, ll>;
using pd = pair<ld, ld>;
using vi = vector<int>;
using vb = vector<bool>;
using vc = vector<char>;
using vl = vector<ll>;
using vd = vector<ld>;
using vs = vector<str>;
using vpi = vector<pi>;
using vpl = vector<pl>;
using vpd = vector<pd>;
str tout[4] = {"No", "Yes", "NO", "YES"};
const ll M18 = 1e18;
const int M9 = 1e9;
const int N = 1e5;
int main() {
  int r, g, b;
  cin >> r >> g >> b;
  r = r / 2 + r % 2;
  g = g / 2 + g % 2;
  b = b / 2 + b % 2;
  r = (r - 1) * 3;
  g = 1 + (g - 1) * 3;
  b = 2 + (b - 1) * 3;
  cout << 30 + max({r, g, b});
}
