import sys a,b,c = map(int,input().split()) D = b**2-4*a*c if D < 0: print('imaginary') elif D==0: print(-b/(2*a)) else: if a < 0: a,b,c = -a,-b,-c s1 = (-b-(b**2-4*a*c)**(1/2))/(2*a) s2 = (-b+(b**2-4*a*c)**(1/2))/(2*a) print(s1,s2)