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