eolymp
bolt
Try our new interface for solving problems
Problems

Aquarium Tank

Aquarium Tank

You just bought an “artistic” aquarium tank that has an interesting shape, and you poured l liters of water into the tank. How high is the water in the tank?

When you look at this tank from one side, it has the shape of a convex polygon. This polygon has exactly two vertices on the table (y-coordinates are 0), and all other vertices have positive y-coordinates. There are also exactly two vertices with maximum y-coordinates, and water is poured into the opening between these two vertices. This aquarium tank has a depth of d centimeters. The tank is glued to the table, so no matter what shape it has, it keeps its position and does not tip over.

All coordinates and lengths in this problem are given in centimeters. It should be noted that each cubic meter is equivalent to 1 000 liters.

An illustration showing the configuration of the tank of the first sample input is given below:

7532.gif

Input

Consists of a single test case. The first line contains an integer n (4n100) giving the number of vertices in the polygon. The next line contains two integers d and l, where d (1d1 000) is the depth of the aquarium tank and l (0l2 000) is the number of liters of water to pour into the tank. The next n lines each contains two integers, giving the (x, y) coordinates of the vertices of the convex polygon in counterclockwise order. The absolute values of x and y are at most 1 000. You may assume that the tank has a positive capacity, and you never pour more water than the tank can hold.

Output

Print the height of the water (in centimeters) in the aquarium tank to 2 decimal places.

Time limit 1 second
Memory limit 64 MiB
Input example #1
4
30 50
20 0
100 0
100 40
20 40
Output example #1
20.83
Input example #2
9
30 70
110 70
100 80
80 80
-10 60
-40 30
-40 25
20 0
100 0
120 10
Output example #2
19.74
Source 2014 ACM North America - Rocky Mountain, Problem G