ll a,b;{rd(a,b);b/=gcd(a,b);while(b%2<1)b/=2;while(b%5<1)b/=5;wt(b-1?"Yes":"No","");}