#include #define rep(i, n) for (int i = 0; i < n; ++i) typedef long long ll; using namespace std; int main() { ll a, b; cin >> a >> b; while (b % 2 == 0) b /= 2; while (b % 5 == 0) b /= 5; if (b == 1) cout << "No"; else cout << "Yes"; cout << endl; return 0; }