#include using namespace std; using ll=long long; #define rep2(i, a, n) for(int i = (a); i < (n); i++) #define rep(i, n) rep2(i,0,n) void in(){} template void in(Head&& head,Tail&&... tail){cin>>head;in(forward(tail)...);} void out(){cout< void out(Head&& head,Tail&&... tail){cout<(tail)...);} ll hoge(int a,int n){ if(n==1)return n; return a*hoge(a,n-1); } int main(){ cin.tie(nullptr);ios_base::sync_with_stdio(false); int n,z; in(n,z); ll a,b,c=hoge(z,n); rep2(x,1,z+1){ a=hoge(x,n); rep2(y,1,z+1){ b=hoge(y,n); //out(a,b,c); if(a+b==c){ cout<<"Yes"<