#include <stdio.h>
#include <math.h>
int main() {
double a, b, c;
double discriminant;
double root1, root2;
double temp;
// 获取用户输入的 a、b、c 值
scanf("%lf %lf %lf", &a, &b, &c);
// 计算判别式
discriminant = b * b - 4 * a * c;
// 计算两个实根
root1 = (-b + sqrt(discriminant)) / (2 * a);
root2 = (-b - sqrt(discriminant)) / (2 * a);
// 按从大到小的顺序排列
if (root1 < root2) {
temp = root1;
root1 = root2;
root2 = temp;
}
// 按照指定格式输出两个实根
printf("%7.2f%7.2f\n", root1, root2);//右对齐
return 0;
}