#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int A, B; cin >> A >> B; for (int i = 1; i < A + 1; i++) { if (A % i == 0 && i % B == 0) { cout << "YES" << '\n'; return 0; } } cout << "NO" << '\n'; return 0; }