S = int(input()) e = 10**-10 ans = [] while S > 0: a = int(S**0.5 + e) ** 2 ans.append(a) S -= a print(len(ans)) print(*ans)