#CODEFESTIVAL2016FINALB. Exactly N points

Exactly N points

Score : 300300 points

Problem Statement

The problem set at CODE FESTIVAL 20XX Finals consists of NN problems.

The score allocated to the ii-th (1iN)(1 \leq i \leq N) problem is ii points.

Takahashi, a contestant, is trying to score exactly NN points. For that, he is deciding which problems to solve.

As problems with higher scores are harder, he wants to minimize the highest score of a problem among the ones solved by him.

Determine the set of problems that should be solved.

Constraints

  • 1N1071 \leq N \leq 10^7

Partial Score

  • 200200 points will be awarded for passing the test set satisfying 1N10001 \leq N \leq 1000.
  • Additional 100100 points will be awarded for passing the test set without additional constraints.

Input

The input is given from Standard Input in the following format:

NN

Output

Among the sets of problems with the total score of NN, find a set in which the highest score of a problem is minimum, then print the indices of the problems in the set in any order, one per line.

If there exists more than one such set, any of them will be accepted.

4
1
3

Solving only the 44-th problem will also result in the total score of 44 points, but solving the 11-st and 33-rd problems will lower the highest score of a solved problem.

7
1
2
4

The set {3,4}\{3,4\} will also be accepted.

1
1