The first line contains only one integer T (T<=200), which is the number of test cases. For each test case, first line comes five positive integer v
1, v
2, v, t, x (v
1<v
2). v
1 is the speed of Maze, v
2 is the speed of Fat brother, v is the speed of the rain, you can assume that all rain is in a same speed, t means Fat brother starts to chase Maze after t second, x means they have a quarrel in (x, 0). Then a line with an integer n means that there is n rain begin to drop when Maze start running, 1<=n<=1000. Then n lines describe the rain. Each line contains four integers x
0, y
0, r, h. (x
0, y
0) is the center of the circle, r is the radius of the circle, h is the height of the triangle. All the number mentioned before except x
0 are positive and no large than 1000. x
0 is no large than 1000 and no less than -1000. Note that the point (x, 0) may in the rain in the beginning. Two rains may intersect with each other. See the picture for more detail.