#include<cstdio>
#include<cstring>
#include <cstdlib>
#include <algorithm>
#include <iostream>
#include <cmath>
#define M 100010
using namespace std;
double p, q, r, s, t, u, flag;
double fun(double x)
{
return p*exp(-x)+q*sin(x)+r*cos(x)+s*tan(x)+t*x*x+u;
}
int main()
{
while(scanf("%lf%lf%lf%lf%lf%lf",&p,&q,&r,&s,&t,&u)!=EOF)
{
double l=0.0,r=1.0,mid;
if(fun(0)<0 || fun(1)>0){printf("No solution\n");continue;}
while(l+1e-10<r)
{
mid=l+(r-l)/2;
if(fun(mid)<0)
r=mid;
else if(fun(mid)>0)
l=mid;
}
printf("%.4lf\n",mid);
}
}