#D4221. Donut Hole
Donut Hole
Donut Hole
Problem
You brought a flat, holeless donut with a horizontal vertical rectangle for ACPC. Place this donut on the dimension plane coordinate with the center of the donut so that the side of length H and the axis are parallel.
On the ACPC day you ate a donut that was in the range of vertical centered on the coordinates (, ). If you want to eat the same amount on the and days, divide the donut by a straight line passing through the coordinates , and the sum of the donut areas in the area on one side of the straight line is on the other side I want it to be equal to the sum of the donut areas in the area of.
Find one slope of such a straight line.
Constraints
The input satisfies the following conditions.
- , , , are even numbers
Input
The input is given in the following format.
Output
Output the slope of a straight line in one line. If the absolute error or relative error is or less, the answer is correct.
Examples
Input
6000 5000 20 10 400 300
Output
0.75
Input
10 10 8 8 8 8
Output
1
inputFormat
input satisfies the following conditions.
- , , , are even numbers
Input
The input is given in the following format.
outputFormat
Output
Output the slope of a straight line in one line. If the absolute error or relative error is or less, the answer is correct.
Examples
Input
6000 5000 20 10 400 300
Output
0.75
Input
10 10 8 8 8 8
Output
1
样例
6000 5000 20 10 400 300
0.75