Four points in a plane form a square if and only if the four sides have equal length and if the two diagonals have equal length.
The following sequences of four points each form a square:
(0,0), (0,1), (1,1), (1,0)
(0,0), (1,1), (0,1), (1,0)
(0,0), (2,1), (3,-1), (1, -2)
Note that the points can be given in any order and that the sides of a
square do not need to be parallel to the
(0,0), (0,2), (3,2), (3,0)
(0,0), (3,4), (8,4), (5,0)
(0,0), (0,0), (1,1), (0,0)
Eight real valued numbers, each on a separate line. These numbers are
respectively the
A single line containing the text square if the four points represent a square, and the text not a square if this is not the case.
Input:
0.0 0.0 0.0 1.0 1.0 1.0 1.0 0.0
Output:
square
Input:
0.0 0.0 3.0 4.0 8.0 4.0 5.0 0.0
Output:
not a square