Given the coordinates of three verticesof a triangle,write a program to judge the kind of the triangle. Note that three points may not form a triangle (for example, two or three vertices coincide, or three points are collinear).
The first line contains one integerN(N ≤ 10,000), the number oftriangles.
The following N lines, each line contains six integersin the following format:x1 y1 x2 y2 x3 y3Where (xi,yi) i=1,2,3 arethe coordinates of three verticesof the triangle.-10,000≤ xi,yi ≤ 10,000 i=1,2,3
OutputN lines. For each triangle, output one line.
If the three points do not form a triangle, output "invalid"(Without quotation marks)
If three points form an obtuse triangle, output "obtuse"(Without quotation marks)
If three points form an acute triangle, output "acute"(Without quotation marks)
If three points constitute a right triangle, output "right"(Without quotation marks)