#include using namespace std; using ll=long long; int main(){ ll s; cin>>s; vector a; while(s){ ll val=sqrt(s); s-=val*val; a.push_back(val*val); } cout<