#include "bits/stdc++.h" using namespace std; int main() { long long A, B; cin >> A >> B; if (A % B == 0) cout << "YES" << endl; else cout << "NO" << endl; }