Blocks

No attempts yetTime limit1sMemory limit128 MB

Problem

A 1×4N1 \times 4N grid has blocks in the rightmost 2N2N cells.

You may pick two consecutive occupied cells and move them to two consecutive empty cells. Block order must be preserved, and the destination must also be two consecutive cells.

Move the blocks the minimum number of times so that NN consecutive 'A' blocks and NN consecutive 'B' blocks are formed. There are 9 valid final arrangements.

Input

One line with NN (3N1003 \le N \le 100).

Output

Print moves in the form X to Y, meaning the blocks at cells XX and X+1X+1 move to cells YY and Y+1Y+1 (2N+1X,Y2N1-2N+1 \le X, Y \le 2N-1, XYX \ne Y). Any optimal answer is accepted.