#include<iostream> #include<string> #include<iomanip> #include<cmath> #include<vector> #include<algorithm> using namespace std; #define int long long #define endl "\n" const long long INF = (long long)1e18; const long long MOD = 1'000'000'007; string yn(bool f){return f?"Yes":"No";} string YN(bool f){return f?"YES":"NO";} signed main(){ cin.tie(0); ios::sync_with_stdio(false); cout<<fixed<<setprecision(10); int A, B; cin>>A>>B; for(int i = 1; i <= A; i++){ if(A%i == 0 && i%B == 0){ cout<<"YES"<<endl; return 0; } } cout<<"NO"<<endl; return 0; }