~/algor $ cat contests/round-7/AU
AU. Quadratic equation
Problem AU
ICPC rules
1000 ms
64 MB
A quadratic equation is given, where and the discriminant is positive, so it has two distinct roots. Find them:
Since , .
Input
One line with three integers: , and .
Output
One line with two numbers: and , each with exactly 3 digits after the decimal point (for example, 1.000).
Note
Examples
Input #1
1 -3 2
Output #1
1.000 2.000
Input #2
1 0 -2
Output #2
-1.414 1.414