#include using namespace std; typedef long long ll; const ll mod = 1000000007; const ll INF = mod * mod; #define rep(i,n) for(int i=0;i=0;i--) #define Rep(i,sta,n) for(int i=sta;i=1;i--) #define Rep1(i,sta,n) for(int i=sta;i<=n;i++) int main() { int A, B; cin >> A >> B; bool flag = false; rep1(i,A) { if (A % i == 0) { if (i % B == 0) { flag = true; } } } if (flag) cout << "YES" << endl; else cout << "NO" << endl; }