세 점이 한 직선 위에 있지 않은 3n개의 점을 n개의 서로 겹치지 않는 삼각형으로 나누고 각 삼각형의 꼭짓점 번호를 출력한다.
Chiaki has 3n3n3n points p_1,p_2,…,p_3np\_1,p\_2,\dots,p\_{3n}p_1,p_2,…,p_3n. It is guaranteed that no three points are collinear.
Chiaki would like to construct nnn disjoint triangles where each vertex comes from the 3n3n3n points.
There are multiple test cases. The first line of input contains an integer TTT, indicating the number of test cases. For each test case:
The first line contains an integer nnn (1≤n≤10001 \le n \le 10001≤n≤1000) -- the number of triangle to construct.
Each of the next 3n3n3n lines contains two integers x_ix\_ix_i and y_iy\_iy_i (−109≤x_i,y_i≤109-10^9 \le x\_i, y\_i \le 10^9−109≤x_i,y_i≤109).
It is guaranteed that the sum of all nnn does not exceed 10410^4104.
For each test case, output nnn lines contain three integers a_i,b_i,c_ia\_i,b\_i,c\_ia_i,b_i,c_i (1≤a_i,b_i,c_i≤3n1 \le a\_i,b\_i,c\_i \le 3n1≤a_i,b_i,c_i≤3n) each denoting the indices of points the iii-th triangle use. If there are multiple solutions, you can output any of them.