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