#Lutece0865. Dartboard

Dartboard

Migrated from Lutece 865 Dartboard

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

Jaap is playing darts at the local pub with a group of friends. His darts throwing skills are not that great, so he just tries to aim at the center of the dartboard. His mathematical skills are better though, and he wonders what is his expected score for one dart.

After a while Jaap estimates that his darts hit the dartboard (or often miss it) with a probability distribution that depends only on the radius rr from the center of the board, and has the Gaussian form

f(r)=12πσ2er22σ2f(r) = \frac{1}{2\pi\sigma^2}e^{-\frac{r^2}{2\sigma^2}}

That is, the probability of hitting a small surface area ΔxΔy\Delta x \cdot \Delta y at a distance rr from the center is given by f(r)ΔxΔyf(r)\Delta x\cdot \Delta y Here σ\sigma denotes the standard deviation, and Jaap found out that this depends strongly on how many beers he has had.

For those not familiar with the game of darts, a dartboard is depicted below. The score for hitting each of the regions of the dartboard is as follows:

  • the inner bull's eye is worth 5050 points;
  • the bull annulus is 2525 points;
  • each pie has worth of the respective number 11 up to 2020, but
  • the inner triple ring has triple the worth of the pie, while
  • the outer double ring has double the worth.

Finally, if the dart lands outside the double ring, the score is zero. Note that the pies of all numbers have equal area.

title

Figure J.1: A standard dartboard (from Wikimedia, CC BY-SA 3.0 licensed by Tijmen Stam).

Input

The first line contains 6 floating point numbers of strictly increasing size: the radii of the bull’s eye, bull, inner and outer triple ring, and inner and outer double ring, all in centimeters. The second line contains the standard deviation σ\sigma in centimeters as a floating point number. All floating point numbers are in the range [103,100][10^{-3}, 100].

Output

Print the expected score of one dart for Jaap as a floating point number on a single line. The answer should be correct up to either a relative or absolute error of 10410^{-4}.

Samples

输入数据 1

1.27 3.1 10.9 11.7 16.2 17.0
17.0

输出数据 1

5.266210658

输入数据 2

1.27 3.1 10.9 11.7 16.2 17.0
0.5

输出数据 2

49.00690019

输入数据 3

0.1 0.2 0.3 0.4 99.9 100
20

输出数据 3

10.50283655

Resources

Nordic Collegiate Programming Contest 2013