import sys input = lambda :sys.stdin.readline()[:-1] ni = lambda :int(input()) na = lambda :list(map(int,input().split())) yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES") no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO") ####################################################################### n = ni() a = [] for i in range(15): if n == 0: break ok = 0 ng = 10**18 while ng-ok>1: d = (ok+ng)>>1 if d*d <= n: ok = d else: ng = d a.append(ok**2) n -= ok*ok print(*a)