#include #define PI 3.14159265359 using namespace std; const int64_t mod = 1e9 + 7; int main() { int A, B; cin >> A >> B; bool b = false; if (A >= B) { for (int i = 1; i <= A; i++) { if (A % i == 0) { if (i % B == 0) { b = true; break; } } } } cout << (b ? "YES" : "NO") << endl; }