n=int(input()) while n!=0: a=int(n**(1/2)) print(a,end=" ") n-=a**2