#include using namespace std; using ll = long long; int main(){ int n,a,b; ll x,y; cin>>n>>a>>b>>x>>y; vector h(n); for(int i = 0;i>h[i]; int cnt = 0; for(int i = 0;i=want){ h[i] -= want; rest -= want; }else{ h[i] -= rest; rest = 0; } } bool p = true; for(int i = 0;i