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