let () = let a, b = Scanf.scanf "%d %d\n" (fun a b -> a, b) in Printf.printf "%s\n" (if b mod a = 0 then string_of_int(b / a) else "NO")