a,b,c=map(int,input().split()) D=b*b-4*a*c if D<0: print("imaginary") else: ans=[(-b-D**0.5)/(2*a),(-b+D**0.5)/(2*a)] ans.sort() if D==0: print(ans[0]) else: print(*ans)