#include
#include
int main()
{
int a, b, c;
double d, x1, x2,e,f;
scanf_s("%d %d %d", &a, &b, &c);
if (a == 0)
printf("not a quadratic\n");
else
{
d = sqrt(b * b - 4 * a * c);
if (d == 0)
{
x1 = x2 = (b - d) / (2 * a);
printf("two equal roots:%.4lf\n", x1);
}
else if (d > 0)
{
x1 = (b + d) / (2 * a);
x2 = (b - d) / (2 * a);
printf("distinct real roots:%.4lf %.4lf\n", x1, x2);
}
else
{
d= sqrt( 4 * a * c-b*b);
e= -b / (2 * a);
f = d / (2 * a);
printf("complex roots:%.4lf+%.4lfi %.4lf-%.4lfi\n", e, f, e, f);
}
}
return 0;
}