#include <iostream> #include <vector> #include <map> #include <set> #include <queue> #include <string> #include <iomanip> #include <algorithm> #include <cmath> #include <stdio.h> 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; } }