#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { int32_t n, h; cin >> n >> h; vector as(n); bool f = false; for (auto &&a : as) { cin >> a; a = abs(a); f = f || a == 0; } if (f) { cout << "YES" << endl; return 0; } for (auto a : as) { h /= gcd(h, a); } cout << (h == 1 ? "YES" : "NO") << endl; return 0; }