import math 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: print((-b-math.sqrt(b**2-(4*a*c)))/(a*2),(-b+math.sqrt(b**2-(4*a*c)))/(a*2))