#include<stdio.h>
#include<math.h>
int main()
{
double a,b,c;
while(~scanf("%lf%lf%lf",&a,&b,&c))
{
double tp=sqrt(b*b-4*a*c),x1,x2;
x1=(-b+tp)/(2*a);x2=(-b-tp)/(2*a);
if(x1<x2)
{
tp=x1;x1=x2;x2=tp;
}
printf("%.7f\n%.7f\n",x1,x2);
}
return 0;
}