Don't waste your time on the title. You will be given two vectors v1=x1i^+y1j^ and v2=x2i^+y2j^. Let v1 and v2 form angles θ1 and θ2 with the positive x - axis respectively. Note that the magnitude of xii^+yij^ is defined by xi2+yi2.
We expect a third vector v=xi^+yj^ from you. And you have to make sure 2 properties of v.
The magnitude of v should be equal to the product of magnitudes of v1 and v2.
Angle formed with the positive x - axis of v should be equal to the sum of θ1 and θ2.
Input
The first line will contain an integer T ( 1≤T≤105 ) denoting the number of test cases. For each test case there will be exactly one line that contains four integers x1,y1,x2,y2. The values of x1,y1,x2,y2 will be in the range [−108,+108].
Output
Print x and y in a line for each test case. It is guaranteed that x and y will be integers.