atcoder#AGC050A. [AGC050A] AtCoder Jumper
[AGC050A] AtCoder Jumper
Score : 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 pages numbered through . For each (), choose two integers and (), and add two links on Page : a link to Page and a link to Page . The website must satisfy the following constraint:
- You must be able to jump from any page to any other page by clicking at most links.
Under the constraints of the problem, we can prove that this is always possible.
Constraints
Input
Input is given from Standard Input in the following format:
Output
Print the answer in the following format:
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.