#include using namespace std; typedef long long ll; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); ll a,b; cin >> a >> b; ll g=__gcd(a,b); a/=g; b/=g; while(b%2==0)b/=2; while(b%5==0)b/=5; if(b==1){ printf("No\n"); } else{ printf("Yes\n"); } }