#include using namespace std; int main(){ int P; cin >> P; set st; for (int i = 0; i * i <= 1e9; i++){ st.insert(i * i); } bool ok = false; for (int i = 0; i * i <= 1e9; i++){ if (st.count(P - i * i) > 0){ ok = true; } } if (ok){ cout << "Yes" << endl; } else { cout << "No" << endl; } }