import matplotlib.pyplot as plt import numpy as np a,b,c=map(int,input().split()) D=b*b-4*a*c u=2*a if D>0: a1=(-b-D**0.5)/u a2=(-b+D**0.5)/u #print(a1,a2) print(min(a1,a2),max(a1,a2)) elif D==0: print("{:.16f}".format(-(b/u))) else: print("imaginary")