Task Description
Behold My Quadrangle
Any square is a rectangle, any rectangle is a quadrangle, and any quadrangle is composed of four sides.
But not all rectangles are squares, not all quadrangles are rectangles, and not all sets of four sides are
quadrangles.
We have the length of four sides. You have to determine if they can form a square. If not, determine
if they can form a rectangle. If not, determine if they can form a quadrangle.
Input Format
The first line of the input contains an integer indicating the number of test cases.
For each test case, there is a line with four positive integer numbers, between 0 and 2^30
Output Format
For each test case, the output should consist of a line with the text 'square', 'rectangle', 'quadrangle'
or 'banana', if the sides of the corresponding case can form a square, a rectangle, a quadrangle or none,
respectively.
Sample Input
12345 4
10 8 7 6
9 1 9 1
29 29 29 29
5 12 30 7
Sample Output
1234 quadrangle
rectangle
square
banana