a, b, c = map(int, input().split()) D = b * b - 4 * a * c if D < 0: print("imaginary") elif D == 0: print(-b / (2 * a)) else: print((-b - (D ** 0.5)) / (2 * a), (-b + (D ** 0.5)) / (2 * a))