#include using namespace std; typedef long long int ll; typedef pair P; typedef vector VI; typedef vector VVI; const ll MOD = 1000000007; const ll INF = 1e18; #define REP(i,n) for(int i=0;i> n >> z; if(n>=3){ cout << "No" << endl; } else if(n==2){ for(int i=1;i<=sqrt(z);i++){ int x=z-i*i; int y=sqrt(x); if(x==y*y){ cout << "Yes" << endl; return 0; } } cout << "No" << endl; } else{ if(z>=2) cout << "Yes" << endl; else cout << "No" << endl; } return 0; }