let [|n; h|] = stdin.ReadLine().Split " " |> Array.map int64 let a = stdin.ReadLine().Split " " |> Array.map int64 a |> Array.reduce (fun x y -> (x * y) % h) |> (fun x -> printfn "%s" (if x = 0 then "YES" else "NO"))