Partitions into summands#2390

Partitions into summands

1 second
128 megabytes
Very easy

List all partitions of the positive integer into a sum of positive integers. The partitions must satisfy the following conditions:

Input

One positive integer (1 \leq n \leq 40).

Output

Print all valid partitions, each on a separate line.

Examples

Example 1

Loading
Loading