from math import sqrt 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-sqrt(b*b-4*a*c))/(2*a), (-b+sqrt(b*b-4*a*c))/(2*a))