#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, g, b, t = 0, ans = 0, maxx;
  cin >> r >> g >> b;
  int i = 1;
  while (r > 0 || b > 0 || g > 0) {
    if (i == 1) {
      r -= 2;
      t++;
    } else if (i == 2) {
      g -= 2;
      t++;
    } else if (i == 3) {
      b -= 2;
      t++;
    }
    i++;
    if (i > 3) i = 1;
  }
  cout << t + 29 << endl;
  return 0;
}
