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