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