#include #include using namespace std; #define yesif(x) cout << ((x) ? "YES": "NO") << endl #define rep(i,n) for(int i = 0;i>n>>h; long long product =1; rep(i,n){ int a; cin>>a; product*=a%h; } yesif(product%h==0); return 0; }