#include #define rep(i,n) for(int i=0;i ; const ll INF = 10000000000; const int MOD = 1000000007; int main(){ int a,b; cin >> a >> b; bool ok = false; for(int i=1;i<=a;i++){ if(a%i == 0 && i%b ==0) ok = true; } cout << (ok ? "YES" : "NO") << endl; return 0; }