N=int(input()) ans=[] while N: s=int(N**0.5)**2 ans.append(s) N-=s print(*ans)