#include using namespace std; #define int long long signed main() { int p; cin >> p; bool ok = false; for(int i=1;i*i<=p;i++) { for(int j=1;j*j<=p;j++) { ok |= (i*i + j*j == p); } } cout << (ok ? "Yes" : "No") << endl; return 0; }