#include <bits/stdc++.h>
using namespace std;
int n, m, len;
int main() {
  int i, j, k, t, a, b;
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  int r, g;
  cin >> r >> g >> b;
  int it = 0;
  while (r or g or b) {
    if (it % 3 == 0) {
      r -= 2;
      r = max(0, r);
    } else if (it % 3 == 1) {
      g -= 2;
      g = max(0, g);
    } else {
      b -= 2;
      b = max(0, b);
    }
    if (r or g or b) it++;
  }
  cout << it + 30 << "\n";
  return 0;
}
