#include #include #include using namespace std; long long gcd(long long x, long long y){ if(x < y) swap(x, y); if(x % y == 0) return y; return gcd(y, x % y); } int main(){ unsigned long long a, b; cin >> a >> b; long long g = gcd(a, b); a /= g; b /= g; while(b % 2 == 0) b /= 2; while(b % 5 == 0) b /= 5; if(b == 1) cout << "No" << endl; else cout << "Yes" << endl; }