#include using namespace std; int main() { int p; cin >> p; for (int i = 0; i <= (int)10e4; i++) { int remain = p - i * i; int j = sqrt(remain); if (remain > 0 && j * j == remain) { cout << "Yes" << '\n'; return 0; } } cout << "No" << '\n'; return 0; }