def solve(): k = int(input()) for a in range(251): for b in range(251 - a): for c in range(251 - a - b): if (a + b) * (a + b - 1) // 2 - b * (b - 1) // 2 + c == k: return [1] * a + [2] * b + [7] * c + [24] return [0] v = solve() print(len(v)) print(*v)