#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:64000000")
using namespace std;
int x1, x2, x3;
int ans;
void readData() { scanf("%d %d %d", &x1, &x2, &x3); }
void solution() {
  if (x1 != 0) ans = 30 + (((x1 - 1) / 2) * 3);
  if (x2 != 0) ans = max(ans, 31 + (((x2 - 1) / 2) * 3));
  if (x3 != 0) ans = max(ans, 32 + (((x3 - 1) / 2) * 3));
}
void writeData() { printf("%d\n", ans); }
int main() {
  readData();
  solution();
  writeData();
  return 0;
}
