#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long r, g, b;
  cin >> r >> g >> b;
  int cnt = 30;
  int flg = 0;
  while (1) {
    if (r - 2 <= 0 && g <= 0 && b <= 0) {
      r -= 2;
      if (flg) cnt++;
      break;
    } else {
      r -= 2;
      if (flg) cnt++;
    }
    if (r <= 0 && g - 2 <= 0 && b <= 0) {
      g -= 2;
      cnt++;
      break;
    } else {
      g -= 2;
      cnt++;
    }
    if (r <= 0 && g <= 0 && b - 2 <= 0) {
      b -= 2;
      cnt++;
      break;
    } else {
      b -= 2;
      cnt++;
    }
    flg = 1;
  }
  cout << cnt;
  return 0;
}
