#include "stdio.h"
#include<math.h>
main()
{
float a,b,c,x1,x2,q,p,m,n;
char i;
scanf("%f,%f,%f",&a,&b,&c);
if (a=0)
{ printf("This isn't a quadratic\n");
printf("x1=x2=-c/b=%8.4f\n",x1,x2);
}
else
{ n=b*b-4*a*c;
p=sqrt(n);
q=2*a;
if(n>0)
{ x1=(-b+p)/q;
x2=(b+p)/q;
printf("x1=%8.4f x2=%8.4f\n",x1,x2);}
else if("n=0")
{
printf("x1=x2=-b/q=%8.4f\n",x1,x2);}
else
{ m=sqrt(-n);
x1=-b/q+m;
x2=-b/q-m;
printf("x1=%8.4fi x2=%8.4fi\n",x1,x2);
}
}}