-2.00 2.00 5.00
----------------------------------------------------------------------------
#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;
double ans[4];
double a,b,c,n;
int cur=0;
void pd(double l,double r){
if(r-l<0.0001) return;
double m=(l+r)/2.0;
double s=l*l*l*a+l*l*b+l*c+n;
double t=r*r*r*a+r*r*b+r*c+n;
if(s*t<0){
if(r-l<0.001){
ans[++cur]=l;
return ;
}
}
pd(l,m);
pd(m,r);
return;
}
int main(){
scanf("%lf%lf%lf%lf",&a,&b,&c,&n);
pd(-100.0,100.0);
printf("%.2lf %.2lf %.2lf\n",ans[1],ans[2],ans[3]);
return 0;
}
----------------------------------------------------------------------------