Partitions into summands
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
List all partitions of a positive integer into positive integer summands. The partitions should satisfy the following properties:
The summands in each partition are arranged in non-increasing order.
The partitions are listed in lexicographic order.
Input
One single integer .
Output
Print each partition on a separate line.
Examples
Input #1
Answer #1
Submissions 741
Acceptance rate 46%