#include using namespace std; using ll = long long; #define rep(i,m,n) for(int i=m; i> A >> B; for(int i=1; i*i <= A; ++i){ if(A%i != 0) continue; if(i%B == 0 || (A/i)%B == 0){ cout << "YES" << endl; return 0; } } cout << "NO" << endl; return 0; }