Suppose that the lower left corner of the billiard table is the coordinate origin (0, 0), and the radius of the billiard ball is r. It is known that the starting position of the billiard ball center is (px, py) and the initial velocity is (vx, vy).
Please calculate: after time t, where is the billiard ball going?
The first line contains one integer T(T ≤ 1,000), the number of test cases.For each test case, there are eight integers in one line in the following format:L W r px py vx vy t(10≤ L,W ≤ 1,024 , 1≤r<5 , r≤px≤L-r , r≤py≤W-r , -1,000≤vx,vy≤1,000 , 0≤t≤109)
For each case, your program will output the position of the billiard ball center after time t in one line.The position is represented by two integer coordinates separated by a space.