#t1. 烤鸡
烤鸡
Roast Chicken
Problem Background
Piggy Hanke got himself a chicken.
Problem Description
Piggy Hanke especially loves eating roast chicken (they are both livestock, why fry each other alive!). Hanke eats chicken in a peculiar way — why peculiar? Because he has seasonings (mustard, cumin, etc.), and each seasoning can be added in an amount from to grams. The deliciousness of any roast chicken is the sum of the amounts of all seasonings.
Now Hanke wants to know: given a target deliciousness , output all the combination schemes for the seasonings.
Input Format
One positive integer , representing the target deliciousness.
Output Format
The first line: the total number of schemes.
From the second line to the end: numbers per line, representing the amount of each seasoning used, listed in lexicographic order.
If there is no valid scheme, just output a single on the first line.
Sample Input
11
Sample Output
10
1 1 1 1 1 1 1 1 1 2
1 1 1 1 1 1 1 1 2 1
1 1 1 1 1 1 1 2 1 1
1 1 1 1 1 1 2 1 1 1
1 1 1 1 1 2 1 1 1 1
1 1 1 1 2 1 1 1 1 1
1 1 1 2 1 1 1 1 1 1
1 1 2 1 1 1 1 1 1 1
1 2 1 1 1 1 1 1 1 1
2 1 1 1 1 1 1 1 1 1
Constraints
For of the test data, .