let () = let a, b = Scanf.scanf "%d %d " (fun a b -> a, b) in let n = a + 5*b in let t = Array.make (n + 1) false in for i = 0 to a do for j = 0 to b do t.(i+5*j) <- true done done; for i = 1 to n do if t.(i) then begin print_int i; print_newline () end done