A graph $$$G$$$ is called self-complementary if it is isomorphic to its complement, i.e. there exists some permutation $$$p$$$ on its vertices such that for $$$\forall u\not=v$$$: $$$u v$$$ is an edge in $$$G$$$ iff $$$p_u p_v$$$ is not an edge.
Given $$$n$$$, output a self-complementary graph $$$G$$$ on $$$n$$$ vertices, and the permutation $$$p$$$, or indicate that this is impossible.
The only line of input contains one integer $$$n$$$ ($$$1 \leq n \leq 2000$$$).
If there is no solution, print a single integer $$$-1$$$.
Otherwise, on the first line output one integer $$$m$$$ ($$$0 \leq m \leq \frac{n\cdot(n-1)}{2}$$$).
Afterwards output $$$m$$$ lines with two integers $$$u_i$$$, $$$v_i$$$ ($$$1 \leq u_i,v_i \leq n$$$, $$$u_i \not=v_i$$$) representing an edge. You may not output the same edge multiple times, formally: $$$\{u_i,v_i\} \not= \{u_j,v_j\} \; \forall 1 \leq i \lt j \leq m$$$.
On the last line output $$$n$$$ distinct integers $$$p_i$$$ ($$$1 \leq p_i \leq n$$$) the permutation.
2
-1
4
3 1 2 2 3 3 4 2 4 1 3