Score : $400$ points
You are given an integer $W$.
You are going to prepare some weights so that all of the conditions below are satisfied.
Print a combination of weights that satisfies the conditions.
Input is given from Standard Input in the following format:
$W$
Print in the following format, where $N$ is the number of weights and $A_i$ is the mass of the $i$-th weight. If multiple solutions exist, printing any of them is accepted.
$N$ $A_1$ $A_2$ $\dots$ $A_N$
Here, $N$ and $A_1,A_2,\dots,A_N$ should satisfy the following conditions:
6
3 1 2 3
In the output above, $3$ weights with masses $1$, $2$, and $3$ are prepared.
This output satisfies the conditions. Especially, regarding the $3$-rd condition, we can confirm that every integer between $1$ and $W$, inclusive, is a good integer.
12
6 2 5 1 2 5 1
You may prepare multiple weights with the same mass.