a,b,c=map(int,input().split()) d=b**2-(4*a*c) if (d<0): print("imaginary") elif(d==0): ans = (-b - (d ** 0.5)) / (2 * a) print(ans) else: ans1=(-b-(d**0.5))/(2*a) ans2 = (-b + (d ** 0.5)) / (2 * a) print(ans1,ans2)