a, b, c=input().split()
a=int(a)
b=int(b)
c=int(c)
if (b*b<4*a*c or (a==b==0 and c!=0)): print ('0')
elif (a==b==c==0): print('-1')
else:
    a1=(-b-(b*b-4*a*c)**.5)/(2*a)
    a2=(-b+(b*b-4*a*c)**.5)/(2*a)
    print (format(a1, '.5f'))
    print (format(a2, '.5f'))
