import math a, b, c = map(int, input().split()) D = b ** 2 - 4 * a * c if D < 0: print("imaginary") else: if D == 0: x = (-b) / (2 * a) print("{0:.15f}".format(x)) else: sqrt_d = math.sqrt(D) x1 = (-b - sqrt_d) / (2 * a) x2 = (-b + sqrt_d) / (2 * a) sorted_roots = sorted([x1, x2]) print("{0:.15f} {1:.15f}".format(sorted_roots[0], sorted_roots[1]))