#include using namespace std; int main(){ int a,b,B; cin>>a>>b; B=b; while(B<101){ if(a%b==0){ cout<<"YES"<