#include using namespace std; int A,B; main() { cin>>A>>B; cout<<(A%B?"NO":"YES")<