#include "stdio.h"
#include "math.h"
void main()
{
float a,b,c,d;
scanf("%f%f%f",&a,&b,&c);
d=b*b-4*a*c;
if(d>=0)
{
if(d>0)
printf("x1=%f,x2=%f",(-b+sqrt(d))/2*a,(-b-sqrt(d))/2*a);
else if(d=0)
printf("x=%f",(-b)/2*a);
}
else
printf("x1=%fi+%f,x2=%fi+%f",(-b)/2*a,sqrt(-d)/2*a,(-b)/2*a,-sqrt(-d)/2*a);
}