import math
def isZero(f):
    temp = 0.0000001
    return abs(f - 0) < temp

while True:
    try:
        a, b, c = map(float, input().split())
        if isZero(a):
            print('Not quadratic equation')
        else:
            delt = b*b - 4*a*c
            if isZero(delt):
                x1 = -b/(2*a)
                print('x1=x2={:.2f}'.format(x1))
            elif delt > 0:
                temp = math.sqrt(delt)
                x1 = (-b-temp)/(2*a)
                x2 = (-b+temp)/(2*a)
                print('x1={:.2f};x2={:.2f}'.format(x1,x2))
            else :
                x = -b/(2*a)
                y = math.sqrt(-delt)/(2*a)
                print('x1={:.2f}-{:.2f}i;x2={:.2f}+{:.2f}i'.format(x,y,x,y))
    except EOFError:
        break