a, b, c = map(int, input().split()) if b*b < 4*a*c: print("imaginary") elif b*b == 4*a*c: print(-b/a/2) else: print((-b-(b*b-4*a*c)**0.5)/2/a, (-b+(b*b-4*a*c)**0.5)/2/a)