#include using namespace std; typedef long long ll; int main() { cin.tie(0); ios::sync_with_stdio(false); int A, B; cin >> A >> B; if(B % A == 0) cout << "YES" << endl; else cout << "NO" << endl; }