Han Sam-deok is a world-renowned artist who draws beautiful triangles. His triangles captivate everyone who sees them, stopping passersby in their tracks. People believed that his triangles were something special — neither acute, right, nor obtuse, and neither equilateral nor isosceles — with mysterious side lengths and inscrutable angles.
Hui-won wants to prove that these triangles are, in fact, perfectly ordinary. To do so, she classifies each triangle by the following two criteria.
Classification by side length
Scalene: all three sides have different lengths.Isosceles: exactly two sides have equal length.Equilateral: all three sides have equal length.Classification by angle
Acute: every angle is smaller than 90 degrees.Right: one angle is exactly 90 degrees.Obtuse: one angle is larger than 90 degrees.Given the coordinates of a triangle's three vertices, write a program that determines its type under each of the two criteria.
The input consists of several test cases. Each test case gives, on one line, the coordinates of the triangle's three vertices in the order x1 y1 x2 y2 x3 y3, each value given to three decimal places. The last line contains a single integer -1, marking the end of the input.
Inputs that would make the classification ambiguous are never given.
For each test case, print on one line the side-length classification and the angle classification, separated by a single space. If the three points do not form a triangle (that is, they are collinear), print Not a Triangle instead.