Ranran has a sequence $a$ of $n$ integers $a_1, a_2, \cdots, a_n$ which satisfies $\displaystyle \sum \dfrac 1 {a_i} \leq \dfrac 1 2$ and he is very proud of it, so he comes up with a problem for you.
You need to find out a sequence $c$ of $m$ integers $c_0, c_1, \cdots, c_{m - 1}$. With $c$, you construct an infinite sequence $b$, and $b_i$ equals to $c_{i\bmod m}$. $b$ must satisfy the condition that in every consecutive $a_i$ numbers of $b$ there exists a number equals to $i$.
Please note that $a$ is 1-indexed and $b, c$ are 0-indexed. The value of $m$ is decided by you.
Can you solve the problem?