#include using namespace std; int a, b; int main(void) { ios::sync_with_stdio(0); cin.tie(0); cin >> a >> b; if(a % b == 0) cout << "YES" << endl; else cout << "NO" << endl; return 0; }