let div x p = let x0 = x / p in x0, x- x0 * p let trans l m n = let dl = div l 25 in let dm = div ((fst dl) + m) 4 in let dn = div ((fst dm) + n) 10 in (snd dl) + (snd dm) + (snd dn) let () = let trans1 = Scanf.sscanf (read_line ()) "%d" trans in let trans2 = Scanf.sscanf (read_line ()) "%d" trans1 in let result = Scanf.sscanf (read_line ()) "%d" trans2 in print_int result; print_newline ()