There are regions arranged in a circle, numbered from to . Regions and are adjacent (), and regions and are adjacent. Initially, every region is infected with a virus.
At noon each day, choose exactly three distinct regions and remove the virus from them. You may choose regions that are already uninfected.
At midnight each day, the virus spreads simultaneously to adjacent regions. A region is infected immediately after midnight if it or at least one of its neighbors was infected immediately before midnight. Newly infected regions do not spread the virus again during the same midnight step.
Find any way to remove the virus from all regions within days. You do not need to minimize the number of days.
The input is given in the following format:
For each test case, output the following.
First, print the number of days ().
On the -th of the next lines, print three distinct region numbers (), separated by spaces. These are the regions to clean at noon on day .
The first line contains the number of test cases . Each case is given in the following format:
All regions must be uninfected after the midnight spread on day . If multiple valid methods exist, print any one of them.