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