#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int r, g, b;
  cin >> r >> g >> b;
  int time = 30, cnt = 1;
  r -= 2;
  while (r > 0 || g > 0 || b > 0) {
    if (cnt % 3 == 0) {
      time++, r -= 2, cnt++;
    } else if (cnt % 3 == 1) {
      time++, g -= 2, cnt++;
    } else {
      time++, b -= 2, cnt++;
    }
  }
  cout << time;
  return 0;
}
