SP199 EMPTY - Empty Cuboids

Description

We call a cuboid **regular** if: - one of its vertices is a point with coordinates (0,0,0), - edges beginning in this vertex lie on the positive semi-axes of the coordinate system, - the edges are not longer than 10 $ ^{6} $ There is given a set **A** of points of space, whose coordinates are integers from the interval \[1..10 $ ^{6} $ \]. We try to find a regular cuboid of maximal volume which does not contain any of the points from the set **A**. A point belongs to the cuboid if it belongs to the interior of the cuboid, i.e. it is a point of the cuboid, but not of its wall. ### Task Write a program which: - reads from the standard input the coordinates of points from the set **A**, - finds one of the regular cuboids of maximal volume which does not contain any points from the set **A**, - writes the result to standard output.

Input Format

Input begins with a line containing integer t

Output Format

For each test case there should be three integers separated by single spaces. These are the X, Y and Z coordinates (respectively) of the vertex of the regular cuboid of maximal volume. If there is more than one such a cuboid, choose whichever. We require that all coordinates be positive.