#include using namespace std; int main() { long long s; cin >> s; vector ans; while( s > (long long)(15 - ans.size()) ) { long long n = sqrt( (long double)s ); ans.push_back( n * n ); s -= n * n; } for( int i = 0; i < s; i++ ) ans.push_back( 1 ); cout << ans.size() << endl; for( long long e : ans ) cout << e << " "; cout << endl; }