#include using namespace std; int main() { long long S; cin >> S; vector A; while (S > 0){ long long k = sqrtl(S); k *= k; A.push_back(k); S -= k; } cout << A.size() << endl; for (int i = 0; i < (int) A.size(); i++){ cout << A[i]; if (i + 1 < (int) A.size()){ cout << ' '; } } cout << endl; }