import sys def input(): return sys.stdin.readline().strip() def mapint(): return map(int, input().split()) sys.setrecursionlimit(10**9) a, b, c = mapint() if b**2<4*a*c: print("imaginary") else: base = (b**2-4*a*c)**(1/2) ans1 = (-b+base)/a/2 ans2 = (-b-base)/a/2 if ans1!=ans2: print(min(ans1, ans2), max(ans1, ans2)) else: print(ans1)