while 1:
try:
a,b,c = map(float, input().split())
if a == 0:
print("Not quadratic equation")
else:
d = b**2-4*a*c
if d == 0:
print("x1=x2=%.2f" % (-b/(2*a)+0))
elif d > 0:
x1 = (-b-d**0.5)/(2*a)
x2 = (-b+d**0.5)/(2*a)
print("x1=%.2f;x2=%.2f" % (x1,x2))
else:
shi = -b/(2*a)+0
xu = abs((-d)**0.5/(2*a))
print("x1=%.2f-%.2fi;x2=%.2f+%.2fi" % (shi,xu,shi,xu))
except:
break