#include <stdio.h>
#include <math.h>
int main(){
double a,b,c;
double x1,x2,root;
while((scanf("%lf%lf%lf",&a,&b,&c))!=EOF){
if(a==0){
printf("Not quadratic equation");
}
else{
root=b*b-4*a*c;
if(root>0){
x1=(-b-sqrt(root))/(2*a);
x2=(-b+sqrt(root))/(2*a);
printf("x1=%.2lf;x2=%.2lf\n",x1,x2);
}
else if(root<0){
x1=(-b)/(2*a);
x2=fabs(sqrt(-root)/(2*a));
printf("x1=%.2lf-%.2lfi;x2=%.2lf+%.2lfi\n",x1,x2,x1,x2);
}
else {
if(-b/(2*a)==-0.0) printf("x1=x2=0.00\n");
else printf("x1=x2=%.2lf\n",-b/(2*a));
}
}
}
return 0;
}
#include <math.h>
int main(){
double a,b,c;
double x1,x2,root;
while((scanf("%lf%lf%lf",&a,&b,&c))!=EOF){
if(a==0){
printf("Not quadratic equation");
}
else{
root=b*b-4*a*c;
if(root>0){
x1=(-b-sqrt(root))/(2*a);
x2=(-b+sqrt(root))/(2*a);
printf("x1=%.2lf;x2=%.2lf\n",x1,x2);
}
else if(root<0){
x1=(-b)/(2*a);
x2=fabs(sqrt(-root)/(2*a));
printf("x1=%.2lf-%.2lfi;x2=%.2lf+%.2lfi\n",x1,x2,x1,x2);
}
else {
if(-b/(2*a)==-0.0) printf("x1=x2=0.00\n");
else printf("x1=x2=%.2lf\n",-b/(2*a));
}
}
}
return 0;
}