#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c, kq;
  cin >> a >> b >> c;
  kq = 30;
  while (1) {
    a = a - 2;
    if (a <= 0 && b <= 0 && c <= 0) {
      break;
    }
    kq++;
    b = b - 2;
    if (a <= 0 && b <= 0 && c <= 0) {
      break;
    }
    kq++;
    c = c - 2;
    if (a <= 0 && b <= 0 && c <= 0) {
      break;
    }
    kq++;
  }
  cout << kq;
}
