#include <bits/stdc++.h>
using namespace std;
int a, b, c, s = 29;
int main() {
  cin >> a >> b >> c;
  for (;;) {
    if (a <= 0 and b <= 0 and c <= 0) break;
    a -= 2;
    s++;
    if (a <= 0 and b <= 0 and c <= 0) break;
    b -= 2;
    s++;
    if (a <= 0 and b <= 0 and c <= 0) break;
    c -= 2;
    s++;
  }
  cout << s << endl;
  return 0;
}
