#include using namespace std; #define int long long #define FOR(i, s, n) for (int i = (s); i < (int)(n); i++) #define RFOR(i, s, n) for (int i = (n) - 1; i >= (int)(s); i--) #define REP(i, n) FOR(i, 0, n) #define RREP(i, n) RFOR(i, 0, n) #define ALL(a) a.begin(), a.end() constexpr long long INF = 1e18; templateinline bool CHMAX(T&a,T b){if(ainline bool CHMIN(T&a,T b){if(a>b){a=b;return true;}return false;} signed main(){ int N,M; cin >> N >> M; if(N % M)cout << "NO" << endl; else cout << "YES" << endl; }