let [|a; b|] = stdin.ReadLine().Split " " |> Array.map int (if a % b = 0 then "YES" else "NO") |> printfn "%s"