In the first line, print a single integer $k$~--- the number of sides on each dice ($1 \le k \le 120$).

Each of the next $n$ lines should describe one dice. For each dice, print $k$ integers from $1$ to $k \cdot n$. All integers used on all dice should be distinct.