#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, g, b, sum = 29;
  cin >> r >> g >> b;
  while (true) {
    if (r == 0 && g == 0 && b == 0) {
      break;
    } else {
      if (r >= 2) {
        r = r - 2;
        sum++;
      } else if (r == 1) {
        r = r - 1;
        sum++;
      } else if (r == 0 && g != 0 || b != 0)
        sum++;
      if (g >= 2) {
        g = g - 2;
        sum++;
      } else if (g == 1) {
        g = g - 1;
        sum++;
      } else if (g == 0 && r != 0 || b != 0)
        sum++;
      if (b >= 2) {
        b = b - 2;
        sum++;
      } else if (b == 1) {
        b = b - 1;
        sum++;
      } else if (b == 0 && g != 0 || r != 0)
        sum++;
    }
  }
  cout << sum << endl;
  return 0;
}
