($a,$b,$c)=glob<>;($x)=grep!((($_+$a)*$_+$b)*$_+$c),-1e6..1e6;$b+=$x*($a+=$x);$d=sqrt$a**2-4*$b;$,=$";print sort{$a-$b}$x,(-$d-$a)/2,($d-$a)/2