import std; void main() { auto input = readln.split.to!(ulong[]); auto N = input[0], H = input[1]; auto A = readln.split.to!(ulong[]); if (A.filter!(a => a % H == 0).count > 0) { writeln("YES"); } else { writeln(A.fold!"a * b" % H == 0 ? "YES" : "NO"); } }