#include #define rep(i,n) for(int i=(0);i<(n);i++) using namespace std; typedef long long ll; template bool chmax(T &a, const T &b) { if (a bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; } int main(){ cin.tie(0); ios::sync_with_stdio(false); int n, z; cin >> n >> z; if(n >= 3){ cout << "No" << endl; exit(0); } for(int x = 1; x * x <= z * z; x++){ for(int y = 1; y * y <= z * z; y++){ if(x * x + y * y == z * z){ cout << "Yes" << endl; exit(0); } } } cout << "No" << endl; }