eolymp
bolt
Try our new interface for solving problems
Problems

Square root

Square root

Find such number $x$ that $x^2 + \sqrt{x} = C$ with no less than $6$ digits after the decimal point. \InputFile One real number $С~(1.0 \le C \le 10^{10})$. \OutputFile 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