import math import sys 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) K=math.floor((-A-math.sqrt(A**2-3*B))/3) x=0 for j in range(K,H): 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)