#ifndef LOCAL #include using namespace std; #define debug(...) (void(0)) #else #include "algo/debug.h" #endif void solve() { int64_t a, b; cin >> a >> b; int64_t g = std::gcd(a, b); a /= g, b /= g; while (b % 2 == 0) b /= 2; while (b % 5 == 0) b /= 5; cout << (b != 1 ? "Yes" : "No") << "\n"; } int main() { std::ios::sync_with_stdio(false); std::cin.tie(nullptr); int tt = 1; // std::cin >> tt; while (tt--) { solve(); } }