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) if c == 0 and a != 0 and b != 0: tmp2 = -b/a if tmp2 > 0: print(0,tmp2) return else: print(tmp2,0) return x_1 = (2*c)/(-b-D) x_2 = (2*c)/(-b+D) if tmp == 0: print(x_1) return if x_1 > x_2: print(x_2,x_1) else: print(x_1,x_2) main()