Sanggeun likes playing darts with his friends. He is bad at darts, but he is very good at math. Now he wants to use that math to work out the expected score of a throw.
The probability density that Sanggeun hits a point at distance r from the center of the board is
f(r)=2πσ21e−2σ2r2
So the probability of hitting a patch of area Δx⋅Δy at distance r from the center is f(r)Δx⋅Δy. Here σ is the standard deviation, and its value depends on how much Sanggeun has had to drink so far.
The board is split into 20 sectors of equal area, and each sector carries one of the numbers 1 through 20. Going outward from the center, the circles and rings are the bull's eye, the bull ring, the triple ring, and the double ring.
Darts are scored like this.
A dart landing outside the double ring scores 0.
The first line contains six real numbers. In order, they are the radii of the bull's eye, the bull ring, the inner edge of the triple ring, the outer edge of the triple ring, the inner edge of the double ring, and the outer edge of the double ring, all in centimeters. The six values are given in increasing order.
The second line contains the standard deviation σ in centimeters.
Every real number lies in the interval [10−3,100].
Print the expected score of one throw by Sanggeun on the first line.
Round the expected score to six decimal places and print all six digits after the decimal point. If the expected score is exactly 50, print 50.000000.