#include using namespace std; using ll = long long; int main(){ int n; ll a,b,x,y; cin>>n>>a>>b>>x>>y; vector h(n); for(int i = 0;i>h[i]; ll l = -1; ll r = 1e9; while(r-l>1){ ll mid = (r+l) / 2; vector now(n); for(int i = 0;i