#include <bits/stdc++.h>
int r, g, b;
int mins;
int total;
int tour;
int cycles;
int main() {
  scanf("%d %d %d", &r, &g, &b);
  if (r >= 2) {
    r -= 2;
  } else if (r == 1) {
    r -= 1;
  }
  mins = 30;
  tour = 1;
  total = r + g + b;
  while (total > 0) {
    if (tour == 1) {
      if (g >= 2) {
        g -= 2;
      } else if (g == 1) {
        g -= 1;
      }
      tour = 2;
    } else if (tour == 2) {
      if (b >= 2) {
        b -= 2;
      } else if (b == 1) {
        b -= 1;
      }
      tour = 0;
    } else if (tour == 0) {
      if (r >= 2) {
        r -= 2;
      } else if (r == 1) {
        r -= 1;
      }
      tour = 1;
    }
    total = r + g + b;
    cycles++;
  }
  mins += cycles;
  printf("%d", mins);
}
