#include #include #include #include #include #include #include using namespace std; using ll = long long; int main() { int a, b; cin >> a >> b; cout << (a % b == 0 ? "YES" : "NO") << endl; return 0; }