import math a, b, c = map(int,(input().split())) d = b*b - 4*a*c if d > 0: d = math.sqrt(d) ans1 = (-b-d)/(2*a) ans2 = (-b+d)/(2*a) print('{:.10f}'.format(ans1), '{:.10f}'.format(ans2)) elif d == 0: print('{:.10f}'.format(-b/2*a)) else: print("imaginary")