You are driving your car in the local hills and returning to your hometown. You want to get back as quickly as possible; however, you notice that you don't have much fuel left. You know the most efficient route to take. Some parts of this route go downhill, and some go uphill. The different parts have different lengths and slopes. How quickly can you reach home with the little fuel you have left?
We will assume a very simple model for the fuel consumption of your car. Fuel consumption (per unit distance travelled) increases linearly with your driving speed . However, there is an offset which depends on the slope of the hill. For example, when going downhill along a particular road, you might be able to go at km/h without expending any fuel; on the other hand, if you were travelling that same road uphill, you would consume fuel at the same rate as if you were driving km/h faster along a flat road. More specifically, the car's fuel consumption in liters per kilometer is given by
c = \max(0, \alpha v + \beta s)
where is the standard fuel consumption rate on a flat road, is your speed in km/h, is the slope of the road, and is a positive constant. Acceleration and deceleration do not cost fuel and can be done instantaneously.
Note that your car has a maximum (safe) speed which cannot be exceeded.
The first line contains a positive integer: the number of test cases, at most . Then, for each test case:
One line with four floating point numbers (0.1 \leq \alpha \leq 100), (0.1 \leq \beta \leq 100), v_\text{max} (10 \leq v_\text{max} \leq 200) and (0 \leq f \leq 50): the standard (flat road) fuel consumption rate of your car, the slope factor, the maximum speed of your car in km/h, and the amount of fuel you have left in liters, respectively.
One line with an integer (1 \leq r \leq 10\ 000): the number of road segments.
lines, each with two floating point numbers x_i and y_i (1 \leq x_i \leq 1\ 000, -1\ 000 \leq y_i \leq 1\ 000): the horizontal distance and height change (both in meters) of the -th road segment. Each road segment has constant slope.
For each test case:
One line with a floating point number: the fastest time in hours in which you can reach town. If it is impossible to reach town, the line must contain IMPOSSIBLE instead.
Your output should have a relative or absolute error of at most 10^{-6}.
Example 1