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