#include using namespace std; using ll=long long; #include using namespace atcoder; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); ll N,A,B; cin>>N>>A>>B; vector X(N); vector D(N+1,0); for(int i=0;i>X[i]; dsu d(N); for(int i=0;i0)d.merge(i,i+1); } for(int i=0;i