#include #include using namespace std; #define ll long long int main() { ll n,h; cin>>n>>h; ll a[n]; ll p=1; ll oo=0; for(ll i=0;i>a[i]; p*=a[i]; if(p>=INT_MAX){ if(p%h!=0){ cout<<"NO"; return 0; } } if(p%h==0){ oo=1; break; } } if(oo && p%h==0) cout<<"YES YES"; else cout<<"NO"; }