#include #include using namespace std; int main() { long long numr,denr; cin >> numr >> denr; if(numr == denr || numr%denr == 0)cout<<"No\n"; else{ while(denr % 2 == 0) { denr /= 2; } while(denr % 5 == 0) { denr /= 5; } //cout << denr << endl; if(denr == 1) { cout <<"No\n"; } else cout <<"Yes\n"; } return 0; }