#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, g, b;
  cin >> r >> g >> b;
  int x, y, z;
  if (r % 2 == 0)
    x = r / 2;
  else
    x = r / 2 + 1;
  if (g % 2 == 0)
    y = g / 2;
  else
    y = g / 2 + 1;
  if (b % 2 == 0)
    z = b / 2;
  else
    z = b / 2 + 1;
  int mx = max(x, max(y, z));
  if (mx == z) {
    cout << 3 * z + 30 - 1;
    return 0;
  }
  if (mx == y) {
    cout << 3 * y - 1 + 30 - 1;
    return 0;
  }
  if (mx == x) {
    cout << 3 * x - 2 + 30 - 1;
    return 0;
  }
  return 0;
}
