Skip to main content

~/algor $ cat contests/round-7/AY

AY. Street lamp and shadow

Problem AY ICPC rules 1000 ms 64 MB

A lamp is lit at the top of a pole of height . A person of height stands upright at distance from the pole, and the lamp casts their shadow on the flat ground. Find the distance from the base of the pole to the farthest end of the shadow. All lengths are in the same units.

A lamp at height H, a person of height h at distance d from it and the end of the shadow on the ground

Input

One line contains three positive integers: , and .

Output

One number — the required distance, with exactly 2 digits after the decimal point (for example, 1.44).

Note


Examples

Input #1
6 2 4
Output #1
6.00
Input #2
9 2 5
Output #2
6.43

Sign in to submit a solution

Signing up is free and takes a minute.