Evil Neuro loves cubes!
Inside the $$$n \times n \times n$$$ electronic toy chest, Evil controls cubes, each occupying a $$$1 \times 1 \times 1$$$ coordinate within the grid. Since the cubes are digital, they can defy gravity and float in mid-air. That is to say, Evil can place them anywhere inside the chest.
Evil wants the chest to look completely packed. To pull it off, the arrangement must be filled from every angle. Whether viewed from the front, the side, or above, the chest must appear as a solid $$$n \times n$$$ block, with no space left.
Unfortunately, Evil has a limited supply of cubes. She asks you to help her do this using the minimum number of cubes.
The first and only line contains a single integer $$$n$$$ $$$(1\le n\le 200)$$$ — the size of the chest.
First, print an integer $$$k$$$, indicating the minimum number of cubes required.
Then, print $$$k$$$ lines, each containing three integers $$$x, y, z\ (1\le x,y,z \le n)$$$, indicating the coordinates of the cube.
If there exist multiple answers, output any of them.
2
4 1 1 2 1 2 1 2 1 1 2 2 2
One possible construction of the sample is shown below:
| Название |
|---|


