A permutation is a sequence of integers in which each integer from $1$ to $n$ appears exactly once. In this problem we look for permutations $p_1, p_2, \dots, p_n$ that satisfy both of the following properties:
The input consists of several test cases. Each test case is a single line containing one integer $n$ ($3 \le n \le 10^6$), the length of the permutation. The input is terminated by a line with $n = 0$, which is not processed.
For each test case, print on its own line the lexicographically smallest permutation of the integers $1$ to $n$ that is both antimonotonic and cyclic. To compare two permutations $a$ and $b$, compare the sequences $a_1, a_2, \dots, a_n$ and $b_1, b_2, \dots, b_n$ from left to right; the permutation with the smaller value at the first position where they differ is the smaller one. Separate the integers on a line with single spaces.