D. 和为n的子序列

    Type: Default 1000ms 64MiB

和为n的子序列

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

输入 n,从 123n1,2,3,…,n 的数列中,找出最前面的总和为 n 的连续子数列。

Input Format

一行一个整数 n。

Output Format

一行若干个数,表示和为 n 的连续子序列,每两个数之间有一个空格。

5
2 3
4
4

Hint

数据范围:n109n \le 10^9