#include using namespace std; #define fr(i, p, n) for(int i = p; i < n; i++) #define rev(i, n, p) for(int i = n; i >= p; i--) typedef long long int LL; const int mod = 1e9 + 7; #define MX INT_MAX #define MN INT_MIN int main() { LL a, b; cin >> a >> b; LL t = __gcd(a, b); while (b % 2 == 0) { b /= 2; } while (b % 5 == 0) { b /= 5; } b == 1 ? cout << "No" : cout << "Yes"; return 0; }