function Main(input) { var data = input.split(" ") var a = parseFloat(data[0]); var b = parseFloat(data[1]); var c = parseFloat(data[2]); var f = x => x*x*x + a*x*x + b*x + c; var df = x => 3*x*x + 2*a*x + b; x0 = -1000100000; for(var i=0;i<1000;++i) x0 -= f(x0) / df(x0); x2 = 1000100000; for(var i=0;i<1000;++i) x2 -= f(x2) / df(x2); x1 = -a / 3.0; for(var i=0;i<1000;++i){ x1 -= f(x1) / df(x1); } console.log(Math.round(x0) + ' ' + Math.round(x1) + ' ' + Math.round(x2)); } Main(require("fs").readFileSync("/dev/stdin", "utf8"));