a,b,c = map(int,input().split()) if b**2-4*a*c<0: print("imaginary") elif b**2-4*a*c==0: print(-b/(2*a)) else: d = (b**2-4*a*c)**0.5 print((-b-d)/(2*a),(-b+d)/(2*a))