Consider an array where each integer from
Your goal is to find and construct such an array with a length of at most
Constraints
Points Awarded | ||
---|---|---|
6 points | ||
9 points |
Input Specification
The only line of input contains two integers
Output Specification
The first line should contain an integer
The next line should contain
Sample Input
Copy
18 7
Sample Output
Copy
7
2 3 16 4 8 5 13
Comments