def solve(): A, B, C = map(int, input().split()) D = B ** 2 - 4 * A * C if D < 0: return ["imaginary"] if D == 0: return [-B / (2 * A)] ans = [-B / (2 * A)] * 2 p = (D / (4 * A * A)) ** 0.5 ans[0] -= p ans[1] += p return ans print(*solve())