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