#include <bits/stdc++.h>
using namespace std;
const long long int N = 1e5 + 5, mod = 1e9 + 7;
long long int r, g, b, c = 29;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> r >> g >> b;
  while (r > 0 || g > 0 || b > 0) {
    c++;
    if (r > 0) r -= 2;
    if (r <= 0 && g <= 0 && b <= 0) break;
    c++;
    if (g > 0) g -= 2;
    if (r <= 0 && g <= 0 && b <= 0) break;
    c++;
    if (b > 0) b -= 2;
    if (r <= 0 && g <= 0 && b <= 0) break;
  }
  cout << c << endl;
  return 0;
}
