import std; void main() { auto input = readln.split.to!(long[]); auto N = input[0], H = input[1]; long P = 1; foreach (e; stdin.byLineCopy) { P = P * e.to!long % H; } writeln(P == 0 ? "YES" : "NO"); }