#include #define rep(i,n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair; const int INF = 1001001001; int main() { int a, b; cin>>a>>b; int t = __gcd(a, b); b /= t; while(b%2 == 0) b /= 2; while(b%5 == 0) b /= 5; if(b == 1) cout<<"No"<