#include int main(){ int L, M, N; scanf("%d%d%d", L, M, N); int a = L /25; if(a > 0){ L -= a * 25; M += a; } a = M / 4; if(a > 0){ M -= a * 4; N += a; } a = N / 10; if(a > 0) N -= a * 10; printf("%d", L + M + N); return 0; }