from math import sqrt 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: p1=-b+sqrt(b**2-4*a*c) p2=-b-sqrt(b**2-4*a*c) q=2*a ans1,ans2=p1/q,p2/q print(min(ans1,ans2)) print(max(ans1,ans2))