Good Order#11314

Good Order

2 seconds
128 megabytes
Easy

The office network consists of several nodes and bidirectional cables connecting them according to the following rules:

The general director wants the network to be in good order. This means that the following condition must be satisfied:

In other words, for any 1 \le i \le n, the network must contain exactly nodes of degree . No other nodes or cables are allowed in the network.

Your task is to construct a network of good order for the given integer , or determine that it is impossible to do so.

Input

Contains a single integer n~(1 \le n \le 239) — the network parameter.

Output

If it is impossible to construct a network of good order for the given , print .

Otherwise, list all the cables in the network. Each cable should be written on a separate line and described by two integers — the -indexed indices of the nodes it connects.

Examples

Example 1

Loading
Loading