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