#include using namespace std; int main() { int n, z; cin >> n >> z; if (n > 2) cout << "No" << endl; else if (n == 1) { if (z == 1) cout << "No" << endl; else cout << "Yes" << endl; } else { bool ok = false; for (int x = 1; x < z; ++x) { for (int y = x; y < z; ++y) { if (x*x + y*y == z*z) { cout << "Yes" << endl; return 0; } } } cout << "No" << endl; } return 0; }