#include using namespace std; using ll = long long; using ul = unsigned long; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n, z; cin >> n >> z; string res{ "No" }; if (n == 1) { cout << (z > 1 ? "Yes" : "No") << "\n"; //return 0; } else if (n == 2) { for (int i = 1; i < z; ++i) { for (int j = 1; j < z; ++j) { if (i * i + j * j == z * z) { cout << "Yes" << "\n"; return 0; } } } cout << "No" << "\n"; //return 0; } else { cout << "No" << "\n"; } return 0; }