#include #include #include #include #include #include #include #include using namespace std; #define INF 110000000000 #define MOD 1000000007 typedef long long ll; typedef pair P; int main(){ int A,B; cin>>A>>B; for(int i=1;i<=100;i++){ if(A%i==0 && i%B==0){ cout<<"YES"<