#include #define rep(i,n) for(int i=0;i> _a >> _b; if(_b == 0){ cout << "Yes" << "\n"; return 0; } if(_b < 0){ _a = 1 / _a; _b *= -1; } int i = int(_b); _b -= i; if(_b < 0.000001) _b += 1; long double c = pow(_a, _b); long long x = round(c); if(abs(c - x) < 0.0000000001) cout << "Yes" << "\n"; else cout << "No" << "\n"; return 0; } int main(){ solve(); return 0; }