#include #include using namespace std; using namespace atcoder; typedef long long ll; typedef pair P; typedef modint1000000007 mint; ll a,b; int main(void){ cin.tie(0); ios::sync_with_stdio(0); cin>>a>>b; for(ll i=1;i<=a;i++){ if(a%i==0&&i%b==0){ cout<<"YES"<