import math S = int(input()) ans = [] while S: x = math.isqrt(S) x = x**2 ans.append(x) S -= x print(*ans)