#include "bits/stdc++.h" #define rep(i,n) for(int i=0;i> A >> B; if (A % B == 0) cout << "YES" << endl; else cout << "NO" << endl; }