#include #define rep(i,n) for (int i=0; i<(n); ++i) using namespace std; using ll=long long; int main(){ int x,y; cin>>x>>y; bool ok=false; vectorz; for(int i=1; i<=x; ++i){ if(x%i==0){ z.push_back(i); } } rep(i,z.size()){ if(z[i]%y==0)ok=true; } cout<<(ok==true? "YES":"NO")<