import numpy as np A, B, C = map(int, input().split()) if (D := B ** 2 - 4 * A * C) < 0: print('imaginary') else: x1, x2 = np.roots([A, B, C]) if D: print(x1, x2) else: print(x1)