Speed Racer#3577

Speed Racer

1 second
256 megabytes
Easy

Speed Racer must go go go rescue Trixie at the top of Mount Domo! He must get there as quickly as possible, but his Mach only holds a specific amount of fuel, and there is no way to refuel on the way. Luckily, he knows precisely how much fuel is consumed at a particular speed, taking into account air resistance, tire friction, and engine performance. For a given speed in kilometers per hour, the amount of fuel consumed in liters per hour is

av^4 + bv^3 + cv^2 + dv

Assuming Speed travels at a constant speed, his tank holds liters of fuel, and the top of Mount Domo is kilometers away, how fast must he drive?

Input

The input will be one problem per line. Each line will contain six nonnegative floating point values representing , , , , , and , respectively. No input value will exceed . The values of , , , and will be positive. There will always be a solution.

Output

The required output will be a single floating point value representing the maximum speed in kilometers per hour that Speed Racer can travel to reach the top of Mount Domo without running out of gas.

The output should be formatted as a decimal number with exactly two digits after the decimal point, and no leading zeros. The output value should be such that Speed Racer will not run out of fuel (so truncate, rather than round, the final result). You are guaranteed that no final result will be within 10^{-6} of an integer multiple of .

Examples

Example 1

Loading
Loading