#include using namespace std; int main(){ int A,B; cin>>A>>B; for(int i=1;i<=100;i++){ if((A%i==0)&&(i%B==0)){ cout<<"YES"<