#Lutece1033. Marineking wilyin

Marineking wilyin

Migrated from Lutece 1033 Marineking wilyin

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

There are three marines in wilyin's base. Their positions form a right triangle.Now wilyin get another marine,he want to put it on some place to form a rectangle with the former three marines.where should he put it on?

Input

The first line of the input contains an integer TT which means the number of test cases. Then TT lines follow, each line consists of 66 positive integers x1,y1,x2,y2,x3,y3x_1, y_1, x_2, y_2, x_3, y_3 which means the positions of these three marines.

You may assume the absolute value of coordinate not exceed 30003000.

Output

For each case, print the coordinate of the forth marine on a single line.

Samples

2
0 0 1 0 0 1
0 1 0 -1 1 0
1 1
-1 0

Resources

Chicken