#include using namespace std; int main() { int A,B; cin>>A>>B; if(((A/B)*B )==A) cout<<"YES"; else cout<<"NO"; }