# coding: utf-8 # Your code here! a,b,c=map(int,input().split()) ans1=(-b+(b**2-4*a*c)**0.5)/(2*a) ans2=(-b-(b**2-4*a*c)**0.5)/(2*a) if b**2-4*a*c>0: print(ans2,ans1) elif b**2-4*a*c==0: print(ans1) else: print("imaginary")