#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, g, b, m, res;
  while (cin >> r >> g >> b) {
    r = (r % 2) ? (r / 2) + 1 : (r / 2);
    g = (g % 2) ? (g / 2) + 1 : (g / 2);
    b = (b % 2) ? (b / 2) + 1 : (b / 2);
    m = max(r, max(g, b));
    if (m == r) {
      res = 3 * m - 2;
      if (m == b)
        res += 2;
      else if (m == g)
        res++;
    } else if (m == g) {
      res = 3 * m - 1;
      if (m == b) res++;
    } else {
      res = 3 * m;
    }
    res += 29;
    cout << res << endl;
  }
  return 0;
}
