SP118 RHOMBS - Rhombs

Description

An unbounded triangular grid is a plane covered by equilateral triangles: ![rhombs](https://cdn.luogu.com.cn/upload/vjudge_pic/SP118/624ba0918759e5db9003fe8eb056dce30ec0a2a6.png) Two neighboring triangles in the grid form a rhomb. There are 3 types of such rhombs: ![rhombs](https://cdn.luogu.com.cn/upload/vjudge_pic/SP118/c07a820eb331d2bb345c300deb2b830e690d56e9.png) A grid polygon is a simple polygon which sides consist entirely of sides of triangles in the grid. We say that a grid polygon is rhombastic if it can be partitioned into internally disjoint rhombs of types A, B and C. As an example let's consider the following grid hexagon: ![rhombs](https://cdn.luogu.com.cn/upload/vjudge_pic/SP118/fe221ba6b5f9375409edbfcf34beebbd628ec6dc.png) This hexagon can be partitioned into 4 rhombs of type A, 4 rhombs of type B and 4 rhombs of type C: ![rhombs](https://cdn.luogu.com.cn/upload/vjudge_pic/SP118/d58175bab2f10066a64576fa3d8adc1ff76ef0ad.png) For a given rhombastic grid polygon P compute the numbers of rhombs of types A, B and C in some correct partition. ### Task Write a program that: - reads a description of a rhombastic grid polygon from the standard input, - computes the numbers of rhombs of types A, B and C in some correct partition of the polygon, - writes the results to the standard output.

Input Format

The input begins with the integer t, the number of test cases. Then t test cases follow. For each test case the first line of the input contains an integer n (3

Output Format

For each test case the first and only line of the output contains three integers separated by single spaces denoting the number of rhombs of type A, B and C respectively, in some partition of the input polygon.