eolymp
bolt
Try our new interface for solving problems
Problems

Trapezoid 1

Trapezoid 1

The base CD,‍ the diagonal BD and the side AD of trapezoid ABCD equal to p.‍ The leg BC is q.‍ Find the length of the diagonal AC.

Input

Two real numbers p and q.

Output

Print the length of the diagonal AC with 4 decimal digits.

Time limit 1 second
Memory limit 128 MiB
Input example #1
5 6
Output example #1
8.0000