#include <bits/stdc++.h>
using namespace std;
int main() {
  long v, i, j, k, l = 0, m, n, p, r, g, b, a[500000] = {0}, t1, t2 = 0, te1,
                   te2, c = 0;
  string aa;
  long time = 30;
  cin >> r >> g >> b;
  while (r > 0 || g > 0 || b > 0) {
    if (r > 0) {
      r = r - 2;
    }
    if (r > 0 || g > 0 || b > 0) time++;
    if (g > 0) {
      g = g - 2;
    }
    if (r > 0 || g > 0 || b > 0) time++;
    if (b > 0) {
      b = b - 2;
    }
    if (r > 0 || g > 0 || b > 0) time++;
    l++;
  }
  cout << time;
  return 0;
}
