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