#include #include using namespace std; using i32 = int; using i64 = long long; using f64 = double; using p2 = pair; using el = tuple; using mint = atcoder::modint998244353; void _main(); int main() { cin.tie(0); ios::sync_with_stdio(false); _main(); } i64 pow(i64 x, i64 n) { i64 res = 1; i64 t = x; while (n > 0) { if (n & 1) res *= t; t *= t; n >>= 1; } return res; } void _main() { i64 n, x; cin >> n >> x; if (n == 1) { cout << "No\n"; } else { cout << "Yes\n"; } return; i64 a = 1, b = 1; for (i64 i = 2; i <= n; i++) { i64 p = pow(i, x); if (p > n) continue; if (n % p == 0) { n /= p; a *= p; } } }