#include using namespace std; int main(void){ // Your code here! int A,B; cin>>A>>B; for(int i=1;i<=A;i++){ if(A%i==0){ if(i%B==0){ cout<<"YES"<