import numpy as np a, b, c = map(int, input().split()) if b * b < 4 * a * c: print("imaginary") else: x, y = np.roots([a, b, c]) if x == y: print(x) elif x > y: print(y, x) else: print(x, y)