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-(b**2-4*a*c)**0.5)/2/a) else: print((-b-(b**2-4*a*c)**0.5)/2/a, (-b+(b**2-4*a*c)**0.5)/2/a)