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