#include <bits/stdc++.h>
using namespace std;
const int maxn = int(1.5 * 1e7);
const int inf = ~0U >> 1;
const long long ll_inf = 1e18 + 420;
const double eps = 1e-4;
const int N = 1e6 + 7;
const int MAX = 2e5 + 9;
const int MOD = 1e9 + 7;
const long double pi = 3.14159265359;
int r, g, b, ans1, ans2, ans3;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> r >> g >> b;
  while (r > 0) {
    r -= 2;
    if (ans1 == 0) {
      ans1 = 30;
    } else {
      ans1 += 3;
    }
  }
  while (g > 0) {
    g -= 2;
    if (ans2 == 0) {
      ans2 = 31;
    } else {
      ans2 += 3;
    }
  }
  while (b > 0) {
    b -= 2;
    if (ans3 == 0) {
      ans3 = 32;
    } else {
      ans3 += 3;
    }
  }
  cout << max(ans1, max(ans2, ans3));
}
