#include <bits/stdc++.h>
using namespace std;
const double PI = 2.0 * acos(0.0);
const double eps = 1e-9;
template <class T>
T Abs(T x) {
  return x > 0 ? x : -x;
}
template <class T>
string toString(T n) {
  ostringstream ost;
  ost << n;
  ost.flush();
  return ost.str();
}
template <class T>
inline T sqr(T n) {
  return n * n;
}
template <class T>
inline T gcd(T a, T b) {
  if (a < 0) return gcd(-a, b);
  if (b < 0) return gcd(a, -b);
  return (b == 0) ? a : gcd(b, a % b);
}
template <class T>
inline T lcm(T a, T b) {
  if (a < 0) return lcm(-a, b);
  if (b < 0) return lcm(a, -b);
  return a * (b / gcd(a, b));
}
template <class T>
T power(T n, int p) {
  if (!p)
    return 1;
  else {
    T sum = sqr(power(n, p >> 1));
    if (p & 1) sum = n;
    return sum;
  }
}
int main() {
  int a, b, c, mx, temp = 0;
  cin >> a >> b >> c;
  if (a % 2 == 0)
    a = a / 2;
  else
    a = (a / 2) + 1;
  if (b % 2 == 0)
    b = b / 2;
  else
    b = (b / 2) + 1;
  if (c % 2 == 0)
    c = c / 2;
  else
    c = (c / 2) + 1;
  mx = max(a, max(b, c));
  for (int i = 0; i < mx * 3; i = i + 3) {
    if (a > 0) temp = max(temp, i);
    if (b > 0) temp = max(temp, i + 1);
    if (c > 0) temp = max(temp, i + 2);
    a--;
    b--;
    c--;
  }
  cout << temp + 30 << endl;
  return 0;
}
