from math import sqrt a, b, c = map (int, input().split()) if b**2-4*a*c < 0: print("imaginary") elif b**2-4*a*c == 0: print(-b/(2*a)) else: print(" ".join(sorted(list(map(str, [(-b-sqrt(b**2-4*a*c))/(2*a), (-b+sqrt(b**2-4*a*c))/(2*a)])))))