Decomposition into terms
Very easy
Execution time limit is 2 seconds
Runtime memory usage limit is 64 megabytes
Withdraw all representations of natural number N, the sum of natural numbers. Permutation of the terms of a new way of communicating does not.
Input
The first line is a single number N. 2 ≤ N ≤ 40.
Output
Each line displays one of the representations. In sum, the terms are separated by "+" sign.
Examples
Input #1
Answer #1
Submissions 780
Acceptance rate 46%