#include using namespace std; using lint = long long; template using V = vector; template using VV = V< V >; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int a, b; cin >> a >> b; cout << (a % b ? "NO" : "YES") << '\n'; }