#include using namespace std; int main(){ int N,H; cin>>N>>H; for(int i=0;i>a; H/=gcd(H,a); } cout<<(H==1?"YES":"NO")<