The first line of the input gives the number of test cases T(1≤T≤100). Ttest cases follow.
For each test case, the only line contains four integers a,b,d,t0(1≤a,b,d,t0≤100), representing the mass of the two balls, the initial distance between them, and how much time the balls move.
It is guaranteed that two balls will not collide within (t0+1)seconds.