#include using namespace std; #define rep(i, n) for (int i=0; iA[i]) { if (k>r-i) return rec(l, i, k-(r-i), i+1); else return rec(i+1, r, k, i+1); } else return rec(l, r, k, i+1); } int main() { cin.tie(0); ios::sync_with_stdio(false); cin >> N >> K; rep(i, N) cin >> A[i]; int x = rec(0, N-1, K, 0); vector B; rep(i, N) if (i!=x) B.pb(A[i]); rep(i, N-1) { if (i