from math import* s=int(input()) a=[] while s: i=isqrt(s)**2 a+=i, s-=i print(*a)