#include #include using namespace std; int main(){ int n,z;cin>>n>>z; if(n >= 3){ cout << "No" << endl; }else if(n == 2){ set x; for(int i = 1; z*z >= i*i; i++){ x.insert(i*i); } for(int i = 1; z*z >= i*i; i++){ if(x.count(z*z-i*i)){ cout << "Yes" << endl; return 0; } } cout << "No" << endl; }else if(z >= 2){ cout << "Yes" << endl; }else{ cout << "No" << endl; } }