#include int main(void){ unsigned short L, M, N; scanf("%hu\n%hu\n%hu\n", &L, &M, &N); M += N / 25; N %= 25; L += M / 4; M %= 4; L %= 10; printf("%u\n", L+M+N); return 0; }