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