#AGC050A. [AGC050A] AtCoder Jumper

[AGC050A] AtCoder Jumper

Score : 500500 points

Problem Statement

Have you noticed this part of AtCoder website?

Here the numbers are carefully chosen so that we can jump from any page to any page in small number of steps, while each page doesn't contain too many links. In this task you are asked to do a similar thing with only two links on each page!

Snuke made a website with NN pages numbered 11 through NN. For each ii (1iN1 \leq i \leq N), choose two integers aia_i and bib_i (1ai,biN1 \leq a_i, b_i \leq N), and add two links on Page ii: a link to Page aia_i and a link to Page bib_i. The website must satisfy the following constraint:

  • You must be able to jump from any page to any other page by clicking at most 1010 links.

Under the constraints of the problem, we can prove that this is always possible.

Constraints

  • 1N10001 \leq N \leq 1000

Input

Input is given from Standard Input in the following format:

NN

Output

Print the answer in the following format:

a1 b1a_1 \ b_1

::

aN bNa_N \ b_N

In case there are multiple possible answers, print any.

1
1 1

Snuke made an excellent website with only one page. It even contains two links to itself!

3
2 3
1 3
1 2

Here we can jump from any page to any other page by a direct link.