from decimal import * ta,tb,tc = map(int, input().split()) a = Decimal(ta) b = Decimal(tb) c = Decimal(tc) D = b * b - 4 * a * c if D > 0: res1 = (-b - D.sqrt()) / (2 * a) res2 = (-b + D.sqrt()) / (2 * a) print("{} {}".format(res1, res2)) elif b * b - 4 * a * c == 0: res1 = (-b) / (2 * a) print(res1) else: print("imaginary")