#include <bits/stdc++.h>
using namespace std;
int chk(int, int, int);
int main() {
  int r, g, b;
  cin >> r >> g >> b;
  int ans = 30;
  while (1) {
    if (chk(r, g, b) == 0) break;
    if (r >= 1) {
      if (r == 1)
        r--;
      else if (r > 1)
        r -= 2;
    }
    ans++;
    if (chk(r, g, b) == 0) break;
    if (g >= 1) {
      if (g == 1)
        g--;
      else if (g > 1)
        g -= 2;
    }
    ans++;
    if (chk(r, g, b) == 0) break;
    if (b >= 1) {
      if (b == 1)
        b--;
      else if (b > 1)
        b -= 2;
    }
    ans++;
    if (chk(r, g, b) == 0) break;
  }
  cout << ans - 1;
  return 0;
}
int chk(int a, int b, int c) {
  if (a > 0 || b > 0 || c > 0) return 1;
  return 0;
}
