import math A,B,C=[int(i) for i in input().split()] def dainyu(p): return p**3+A*p**2+B*p+C def hyouji(x,y,z): li=[round(x),round(y),round(z)] li.sort() li=list(map(str,li)) print(" ".join(li)) H=math.ceil((-A+math.sqrt(A**2-3*B))/3) L=math.floor((-A-math.sqrt(A**2-3*B))/3) while (H-L)>100: Center=(H+L)/2 if dainyu(Center)<=0: H=Center else: L=Center for j in range(math.floor(L)-1,math.ceil(H)+1): if dainyu(j)==0: x=j break if x!=0: wa=-A-x seki=-C/x y=(wa+math.sqrt(wa**2-4*seki))/2 z=(wa-math.sqrt(wa**2-4*seki))/2 hyouji(x,y,z) else: y=(-A+math.sqrt(A**2-4*B))/2 z=(-A-math.sqrt(A**2-4*B))/2 hyouji(x,y,z)