import numpy as np x1, x2 = np.roots(list(map(int, input().split()))) if type(x1) is np.complex128: print('imaginary') elif x1 == x2: print(x1) else: print(x1, x2)