#include <bits/stdc++.h>
using namespace std;
template <class T>
void pv(T a, T b) {
  for (T i = a; i != b; ++i) cout << *i << " ";
  cout << endl;
}
template <class T>
void chmin(T &t, T f) {
  if (t > f) t = f;
}
template <class T>
void chmax(T &t, T f) {
  if (t < f) t = f;
}
int in() {
  int x;
  scanf("%d", &x);
  return x;
}
int main() {
  int r, g, b;
  cin >> r >> g >> b;
  int res = 0;
  while (r + g + b > 0) {
    if (res % 3 == 0) {
      if (r > 1)
        r -= 2;
      else if (r == 1)
        r = 0;
    } else if (res % 3 == 1) {
      if (g > 1)
        g -= 2;
      else if (g == 1)
        g = 0;
    } else {
      if (b > 1)
        b -= 2;
      else if (b == 1)
        b = 0;
    }
    res++;
  }
  cout << res + 29 << endl;
  return 0;
}
