#include using namespace std; int main() { int a,b; cin>>a>>b; for(int i=1;i<=a;i++){ if(a%i==0 and i%b==0){ cout<<"YES"<