import math a, b, c = map(int,(input().split())) d = b*b - 4*a*c if d > 0: d = math.sqrt(d) print(((-b-d)/(2*a)), ((-b+d)/(2*a))) elif d == 0: print(-b/2*a) else: print("imaginary")