import std.stdio; import std.conv; import std.string; import std.math; import std.random; import std.range; import std.algorithm; import std.functional; import core.bitop; import std.bigint; import std.typecons; import std.container; void main() { auto input = readln.split.to!(ulong[]); auto N = input[0], H = input[1]; auto A = readln.split.to!(ulong[]); writeln(A.fold!"a * b" % H == 0 ? "YES" : "NO"); }