a,b,c = map(int,input().split())

d = b*b - 4*a*c
if d < 0:
    print('imaginary')
elif d == 0:
    x = -b / (2*a)
    print(x)
else:
    x1 = (-b + d**0.5) / (2*a)
    x2 = (-b - d**0.5) / (2*a)
    if x1 > x2: x1,x2 = x2,x1
    print(x1, x2)