#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, g, b, i, Time;
  while (cin >> r >> g >> b) {
    Time = 0;
    i = 0;
    for (i = 0; (r + g + b) > 0; i++) {
      if (i % 3 == 0) {
        if (r >= 2) {
          r -= 2;
          Time += 1;
        } else if (r > 0) {
          r = 0;
          Time += 1;
        } else if (r == 0)
          Time += 1;
      }
      if (i % 3 == 1) {
        if (g >= 2) {
          g -= 2;
          Time += 1;
        } else if (g > 0) {
          g = 0;
          Time += 1;
        } else if (g == 0)
          Time += 1;
      }
      if (i % 3 == 2) {
        if (b >= 2) {
          b -= 2;
          Time += 1;
        } else if (b > 0) {
          b = 0;
          Time += 1;
        } else if (b == 0)
          Time += 1;
      }
    }
    cout << Time + 30 - 1 << endl;
  }
  return 0;
}
