#include using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(0); ll v; cin >> v; auto sq = [&](ll v){ ll res = sqrtl(v) + 5; while(res * res > v) res--; return res; }; vector ans; while(v){ ans.push_back(sq(v)); v -= ans.back(); } cout << ans.size() << '\n'; for(int i = 0; i < ans.size(); i++){ cout << ans[i] << (i + 1 == ans.size() ? '\n' : ' '); } }