#include #define REP(i,n) for (int i = 0; i < (n); ++i) template inline bool chmin(T& a, T b) {if (a > b) {a = b;return true;}return false;} template inline bool chmax(T& a, T b) {if (a < b) {a = b;return true;}return false;} using namespace std; using ll = long long; using P = pair; using Pl = pair; using veci = vector; using vecl = vector; using vecveci = vector>; using vecvecl = vector>; const int MOD = 1000000007; const double pi = acos(-1); int main() { int N; cin >> N; ll H; cin >> H; vecl A(N); REP(i,N) { ll a; cin >> a; a = abs(a); A[i] = a; } ll ans = 1; REP(i,N) { ans *= A[i]; ans %= H; } cout << (ans == 0 ? "Yes" : "No") << endl; }