s=int(input()) a=[] while s>0: t=int(s**0.5)**2 a+=[t]*(s//t) s-=t*(s//t) print(len(a)) print(*a)