#include #include using mint = atcoder::static_modint<998244353>; //using mint = atcoder::static_modint<1000000007>; using namespace std; using namespace atcoder; using ld = long double; using ll = long long; #define mp(a,b) make_pair(a,b) #define rep(i,s,n) for(int i=s; i dx{1,0,-1,0},dy{0,1,0,-1}; ld get(ld x,vector&c){ ld out=0; ld p=1; rep(i,0,4){ out+=p*c[i]; p*=x; } out=abs(out); return out; } int main(){ vector c(4);rep(i,0,4)cin >> c[i]; int l,r; cin >> l >> r; int m=1000000; ld ans=1e18; rep(i,0,m+1){ ld x=l+(r-l)/(ld)m*i; ans=min(ans,get(x,c)); } // if(ans<1e-6){ // cout << 0; // } // else cout << setprecision(16)<< ans; printf("%f",ans); }