I, Varvara Andriivna, possess a peculiar trait. I detest gambling, yet when I must play, I invariably win. Les caprices de la fortune.
"The Turkish Gambit"
During the evening kefir session at the 13th house, Nataliya Mykhailivna intends to demonstrate an intriguing paradox to the kittens.
Around the table, kittens will be seated, each receiving a die from Nataliya Mykhailivna. Each die has six faces, with numbers inscribed on them. To ensure no ties occur, Nataliya Mykhailivna will prepare a set of dice such that every number from to appears exactly once across all the dice faces.
Two adjacent kittens can engage in a game against each other. In this game, they roll their dice, and the kitten with the higher number wins.
The paradox is that for each player, the probability of winning against the player to their right is strictly greater than \frac{1}{2}.
Assist Nataliya Mykhailivna in creating such a set of dice.
The input file contains the number — the number of participants (3 \leq n \leq 100).
The output file should contain rows, each describing a die. Each row consists of six numbers that appear on the faces of the corresponding die. All numbers from to must appear exactly once in the output file.
The die described in the first row should win against the die described in the second row with a probability strictly greater than \frac{1}{2}. The second die should win against the third die, and so forth, with the last die winning against the first with a probability strictly greater than \frac{1}{2}.
Example 1