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