Ms. Terry is a pre-school art teacher who likes to have her students work with clay. One of her assignments is to shape a lump of clay into a rectangular block and then measure the block's dimensions. In every class, though, there is always one child who insists on taking some clay from another child. Because Ms. Terry always gives every child in a class the same amount of clay to begin with, you can write a program that finds the bully and the victim after she measures each child's finished block.
The volume of a child's block is the product of its three dimensions. The child whose block has the largest volume is the bully (they took extra clay), and the child whose block has the smallest volume is the victim (they lost clay). In each class the largest volume and the smallest volume are unique.
The input contains one or more classes of students, followed by a final line containing only the value -1.
Each class starts with a line containing an integer $n$, the number of students in the class, followed by $n$ lines of student information. Each line of student information consists of three positive integers giving the dimensions of the clay block, followed by the student's first name.
A class always has at least 2 and at most 9 students ($2 \le n \le 9$). Each name is at most 8 characters long. Every student is given at most 250 cubic units of clay to begin with. There is exactly one bully and exactly one victim in each class.
For each class, print a single line in the form:
<bully> took clay from <victim>.
where <bully> is the name of the student whose block has the largest volume and <victim> is the name of the student whose block has the smallest volume.