{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003eOne day, ABC and DD found a triangular wheat field, and they decide to cut it into two pieces with the same area with a segment. Because of various reasons, one of the endpoints of the division line is fixed at $(p_x, p_y)$. Now you are asked to find the other endpoint of the segment.\u003c/p\u003e\n\u003cp\u003eIf the given endpoint does not lie on the boundary of the wheat field, the problem should be regarded as invalid. The other endpoint required should also locate on the boundary.\u003c/p\u003e\n\u003ch3\u003eInput\u003c/h3\u003e\n\u003cp\u003eThe input provides several test cases and the first line of the input contains a single integer $T~(1 \\le T \\le 1000000)$ indicating the number of cases.\u003c/p\u003e\n\u003cp\u003eFor each test case, eight integers $x_1,y_1,x_2,y_2,x_3,y_3,p_x$ and $p_y$ are given in a line, where $(x_1,y_1),(x_2,y_2)$ and $(x_3,y_3)$ describe the coordinates of vertices for the given triangle wheat field which are guaranteed to be not colinear, and $(p_x,p_y)$ is the given endpont of the segment. All coordinates are integers in the range $[0,100000]$.\u003c/p\u003e\n\u003ch3\u003eOutput\u003c/h3\u003e\n\u003cp\u003eFor each test case, output the coordinate of the other endpoint of the division segment, or output the number \u003ccode\u003e-1\u003c/code\u003e if the problem, in this case, is invalid.\u003c/p\u003e\n\u003cp\u003eFormally, if your answer is $a$ and the jury\u0027s answer is $b$, then your answer will be considered correct if and only if $\\frac{|a - b|}{\\max\\{1, |b|\\}} \\le 10^{-6}$.\u003c/p\u003e"}},{"title":"Sample 1","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e2\n0 0 1 1 1 0 1 0\n0 0 1 1 1 0 2 0\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e0.500000000000 0.500000000000\n-1\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003cbr /\u003e"}}]}