#include using namespace std; #include #include template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } const int INF=1001001001; int main() { int64_t a,b; cin>>a>>b; int x=b; while(x%2==0){ x/=2; } while(x%5==0){ x/=5; } if(a%b==0){cout<<"No"<