#UnknownID41. 1IXMMMlOP0wTWg#&:;.
1IXMMMlOP0wTWg#&:;.
Statement
You are given a coordinate plane and three integers , , and . Find two line segments and such that
- the coordinates of points , , , and are integers;
- and ;
- the length of segment is at least ;
- the length of segment is at least ;
- segments and are perpendicular: if you draw lines that contain and , they will cross at a right angle.
Note that it's not necessary for segments to intersect. Segments are perpendicular as long as the lines they induce are perpendicular.
Format
Input
The first line contains a single integer ( ) — the number of test cases. Next, cases follow.
The first and only line of each test case contains three integers , , and ( ; ).
Additional constraint on the input: the values of , , and are chosen in such a way that the answer exists.
Output
For each test case, print two lines. The first line should contain integers , , , and — the coordinates of the first segment.
The second line should also contain integers , , , and — the coordinates of the second segment.
If there are multiple answers, print any of them.
Sample
4
1 1 1
3 4 1
4 3 3
3 4 4
0 0 1 0
0 0 0 1
2 4 2 2
0 1 1 1
0 0 1 3
1 2 4 1
0 1 3 4
0 3 3 0
相关
在下列比赛中: