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