Crossed Ladders#1506

Crossed Ladders

1 second
128 megabytes
Medium

Along a narrow street, there are two houses — one on the left and the other on the right.

A ladder of length feet is placed at the base of the right house and leans against the house on the left. Another ladder of length feet stands at the base of the left house and leans against the right house. The ladders cross at a height of feet above the ground. Find the width of the street.

Input

Each line represents a separate test case and contains three positive real numbers: , and .

Output

For each test case, print one real number — the width of the street, rounded to three decimal places.

Examples

Example 1

Loading
Loading