#include using namespace std; int main(){ int A, B; cin >> A >> B; bool ok = false; for (int i = 1; i <= 100; i++){ if (A % i == 0 && i % B == 0){ ok = true; } } if (ok){ cout << "YES" << endl; } else { cout << "NO" << endl; } }