#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; int64_t prod = 1; for (auto i = 0; i < n; ++i) { int32_t a; cin >> a; a = abs(a); prod = prod * a % h; } cout << (prod == 0 ? "YES" : "NO") << endl; return 0; }