#include #include using namespace std; #define rep(i, n) for(int i=0; i #include int main() { int P; cin >> P; set bin; rep(i, 10001) { bin.insert(i * i); } for (int x : bin) { if (bin.count(P - x)) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }