#include #include using namespace std; int main() { long long int a, b; long long int a_raw, b_raw; cin >> a_raw >> b_raw; long long int tmp_gcd = gcd(a_raw, b_raw); a = a_raw / tmp_gcd; b = b_raw / tmp_gcd; long long int b_chk = b; while(b_chk % 2 == 0) b_chk /= 2; while(b_chk % 5 == 0) b_chk /= 5; if (b == 1){ cout << "Yes"; } else { cout << "No"; } }