import std; void main() { auto input = readln.split.to!(long[]); auto N = input[0], H = input[1]; auto A = readln.split.to!(long[]); ulong P = 1; foreach (i; 0 .. N) { if (A[i] == 0) break; P *= abs(A[i]); if (P % H == 0) { writeln("YES"); return; } } writeln("NO"); }