#include #define rep(i, n) for (int i = 0; i < n; ++i) typedef long long ll; using namespace std; int main() { int A, B; cin >> A >> B; for (int i = 1; i <= A; ++i) { if (A % i == 0) { if (i % B == 0) { cout << "YES" << endl; return 0; } } } cout << "NO" << endl; return 0; }