#include<stdio.h>
#include<math.h>
int main()
{
float a,b,c,d;
scanf("%f %f %f",&a,&b,&c);
d=(b*b)-(4*a*c);
if(fabs(a-0)<=1e-6)
printf("The equation is not quadratic.");
else if(fabs(d-0)<=1e-6)
printf("The equation has two equal roots: %.4f.",(-b)/(2*a));
else if(d>0&&a>0)
printf("The equation has two distinct real roots: %.4f and %.4f.",(sqrt(d)-b)/(2*a),(-sqrt(d)-b)/(2*a));
else if(d>0&&a<0)
printf("The equation has two distinct real roots: %.4f and %.4f.",(-sqrt(d)-b)/(2*a),(sqrt(d)-b)/(2*a));
else if(d<0&&a>0)
printf("The equation has two complex roots: %.4f%+.4fi and %.4f%+.4fi.",(-b)/(2*a),sqrt(-d)/(2*a),(-b)/(2*a),-sqrt(-d)/(2*a));
else
printf("The equation has two complex roots: %.4f%+.4fi and %.4f%+.4fi.",(-b)/(2*a),-sqrt(-d)/(2*a),(-b)/(2*a),sqrt(-d)/(2*a));
return 0;
}