def main(): a,b,c = map(int,input().split()) tmp = b**2 - 4*a*c if tmp < 0: print ('imaginary') return D = (b**2 - 4*a*c) ** (1/2) x_1 = (-b + D) / (2 * a) x_2 = (-b - D) / (2 * a) if tmp == 0: print(x_1) print(x_1,x_2) main()