#include "bits/stdc++.h" using i64 = std::int_fast64_t; int main() { std::cin.tie(nullptr)->sync_with_stdio(false); i64 x; std::cin >> x; for (i64 i = 1; i <= sqrt(x); i++) { for (i64 j = i; j <= sqrt(x); j++) { if (i * i + j * j == x) { std::cout << "Yes\n"; return 0; } } } std::cout << "No\n"; return 0; }