Each cell of a grid contains exactly one of the integers .
Your goal is to make the grid
using the following operations.
Print a sequence of operations that reaches the target grid. You may receive a partial score depending on the number of operations you output.
The input is given from Standard Input in the following format:
Let be the number of operations. Print your answer in the following format:
For each judge case, suppose your output is valid and uses operations. The score for that case is as follows.
Condition | Score |
|---|---|
Each pair must describe one operation defined above. If there are multiple solutions, print any of them.
The score of a submission is the minimum score over all judge cases.