#include <bits/stdc++.h>
using namespace std;
int n, i, j;
int ar[5];
long long ans;
int main() {
  scanf("%d %d %d", &ar[0], &ar[1], &ar[2]);
  ans = 29;
  i = -1;
  while ((ar[0] > 0) || (ar[1] > 0) || (ar[2] > 0)) {
    i++;
    ans++;
    ar[i % 3] -= 2;
  }
  cout << ans << endl;
  return 0;
}
