e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Problems

Square root

Square root

Find such number x that x2 + SQRT(x) = C with no less than 6 digits after the decimal point. SQRT(x) is a square root of number x.

Входные данные

One real number С (1.0C1010).

Выходные данные

Print the root x with no less than 6 digits after the decimal point.

Time limit 1 second
Memory limit 128 MiB
Input example #1
2.0000000000
Output example #1
1.000000000
Input example #2
18.0000000000
Output example #2
4.000000000