#include using namespace std; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a>a>>b>>c>>d>>p>>q; auto calc=[&](Int x){ return a*x*x*x+b*x*x+c*x+d; }; { Int m=p; for(Int x=p;x<=q;x++) if(calc(x)>calc(m)) m=x; cout<