#include #include int main() { double a, b; scanf("%lf%lf", &a, &b); if (b > 0) { for (; b > 1; b -= 1); } else { for (; b < -1; b += 1); } double c = pow(a, b), eps = 1e-14; if (c - eps <= floor(c + eps)) printf("Yes\n"); else printf("No\n"); return 0; }