Lviv Tower
Limits: 2 sec., 256 MiB
Given that Lviv gained the status of cultural, business and intellectual capital of Ukraine, city officials decided to build something beautiful and majestic in our wonderful city. Building of the world’s highest tower won among all projects. Some people say, that it will be a beautiful view not only in Lviv, but also in all of Galicia.
In fact, the rumors may be overstated. But you are asked to calculate the surface area of the Earth, that will be seen from the top of the tower. It’s needed for the new advertisement. Tower height and radius of the Earth are provided. And for simplicity you can consider that the Earth is a perfect sphere, and neglect the height of the observer.
Input
Single line contains two integers:
R - radius of the Earth;
H - tower height.
Output
Print a single number - the visible area of the Earth’s surface from the top of the tower, with an absolute error of no more than 0.0001 (\(10^{-4}\)).
Constraints
\(1 \leqslant \textbf{R} \leqslant 10000\)
\(1 \leqslant \textbf{H} \leqslant 1000\)
Samples
| Input (stdin) | Output (stdout) |
|---|---|
| 6371 1 | 40023.891393 |
| Element Type | Created | Who | Problem | Compiler | Result | Time (sec.) | Memory (MiB) | # | Actions |
|---|