#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int r, g, d;
  cin >> r >> g >> d;
  int a = (r + 1) / 2;
  int b = (g + 1) / 2;
  int c = (d + 1) / 2;
  int hasilA = max(a, max(b, c));
  int hasilB = max(a - 1, max(b, c));
  int hasilC = max(a - 1, max(b - 1, c));
  cout << 29 + hasilA + hasilB + hasilC;
  return 0;
}
