#include
#include
using namespace std;
int main()
{
int test_case,a,b,c,d;
while((scanf("%d",&test_case) == 1)){
for(int i = 0;i < test_case;i++){
scanf("%d%d%d%d",&a,&b,&c,&d);
if(a == b && b == c && c == d && d == a){
printf("square\n");
}
else if((a == c && b == d) || (a == b && c == d) || (b == c && a == d) ){
printf("rectangle\n");
}
else if( a<=(b+c+d) && b<=(a+c+d) && c<=(a+b+d) && d<=(a+b+c)){
printf("quadrangle\n");
}
else{
printf("banana\n");
}
}
}
return 0;
}
Next
« Prev Post
« Prev Post
Previous
Next Post »
Next Post »