#define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const int mod=998244353; int main(){ int a,b; cin>>a>>b; cout<<(a%b==0?"YES":"NO")<