#include int main() { int L=0,M=0,N=0,G=0,A=0; scanf("%d", &L); scanf("%d", &M); scanf("%d", &N); A += N % 25; M += (N - N % 25) / 25; A += M % 4; L += (M - M % 4) / 4; A += L % 10; G += (L - L % 10) / 10; A += G; printf("%d\n", A); return 0; }