#include using namespace std; int main(){ int p; cin >> p; vector a(10000); for(int i = 1;i <= 10000;i++) a[i] = i * i; for(int i = 1;i <= 10000;i++){ for(int j = 1;j <= 10000;j++){ if(p == a[i] + a[j]){cout << "Yes";return 0;} } } cout << "No"; }