#29Medium
Quadratic equation
Time: 1 s · Memory: 256 MB
- Arithmetic
Statement
You are given a quadratic equation (). Its discriminant is positive, so the equation has two distinct real roots. Find both roots:
Input format
A single line with three integers , , (, , ). It is guaranteed that .
Output format
A single line with two numbers — the roots in increasing order, each with exactly 2 digits after the decimal point.
Examples
Input
1 -5 6
Output
2.00 3.00
Input
2 3 -2
Output
-2.00 0.50
Note
When is negative, turns out to be the larger root — compare the roots before printing and write the smaller one first.
