#include <bits/stdc++.h>
using namespace std;
long long n, i, j, a, b, c, t, cnt;
int main() {
  cin >> a >> b >> c;
  n = 0;
  t = 0;
  cnt = 0;
  while ((a > 0) || (b > 0) || (c > 0)) {
    switch (t) {
      case 0: {
        if (a > 0) a -= 2;
        break;
      }
      case 1: {
        if (b > 0) b -= 2;
        break;
      }
      case 2: {
        if (c > 0) c -= 2;
        break;
      }
    }
    cnt++;
    n++;
    t++;
    t %= 3;
  }
  n--;
  n += 30;
  cout << n << endl;
  return 0;
}
