#include "bits/stdc++.h" using namespace std; #define int long long set s; void anubhav(){ int n; cin >> n; for(int i = 1; i * i <= n; i++) { int x = i * i; int y = n - x; if(s.find(y) != s.end()) { cout << "Yes\n"; return; } } cout << "No\n"; } signed main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); for(int i = 1; i * i <= 1e8; i++) { s.insert(i * i); } int T = 1; // cin >> T; while(T--) anubhav(); return 0; }