#include int main() { using namespace std; cin.tie(nullptr)->sync_with_stdio(false); int64_t a, b; cin >> a >> b; auto g = gcd(a, b); a /= g, b /= g; while (b % 2 == 0) b /= 2; while (b % 5 == 0) b /= 5; cout << (b > 1 ? "Yes\n" : "No\n"); }