#define _DEBUG 0 #if _DEBUG #endif #include #include int main(void) { int scan;//scanf警告用 long long ans=0; long long i, j; long long s;scan=scanf("%lld",&s); long long t=s; long long n; int count=0; while(1) { n=sqrt(s); s-=n*n;count++; if(s<100000000)break; } printf("%d\n",count+s); while(1) { n=sqrt(t); t-=n*n; printf("%d ",n*n); if(t<100000000)break; } while(t--) { printf("1 "); } return 0; }