C0,C1,C2,C3=map(int,input().split()) L,R=map(int,input().split()) def f(x): return abs(C0+C1*x+C2*x*x+C3*x*x*x) ANS=[] for i in range(10**6+1): x=L+(R-L)/(10**6)*i ANS.append(f(x)) MIN=min(ANS) IND=ANS.index(MIN) MIN=L+(R-L)/(10**6)*(IND-1) MAX=L+(R-L)/(10**6)*(IND+1) MIN=max(MIN,L) MAX=min(MAX,R) for tt in range(1000): mid1=MIN+(MAX-MIN)/3 mid2=MIN+(MAX-MIN)/3*2 if f(mid1)