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