#include<stdio.h>
#include<math.h>
#include<complex.h>/复数数据类型
int main()
{
int a,b,c,s;
double x1,x2,t,i,x;
scanf("%d %d %d",&a,&b,&c);
s=b*b-4*a*c;
if(a==0)
printf("错误");
if(a!=0)
{
if(s>0)
{
x1=(-b+sqrt(s))/(2*a);
x2=(-b-sqrt(s))/(2*a);
printf("x1=%lf x2=%lf",x1,x2);
}
else if(s==0)
{
x1=(-b+sqrt(s))/(2*a);
x2=(-b-sqrt(s))/(2*a);
printf("x1=%lf x2=%lf",x1,x2);
}
else
{
x=-b/(2*a);
t=sqrt(-s)/(2*a);
printf("x1=%lf+%lfi x2=%lf-%lfi",x,t,x,t);
}
return 0;
}