#include using namespace std; //#include //using namespace atcoder; using ll=long long; using Graph=vector>; #define MAX 1000000 #define MOD 1000000007 //#define MOD 998244353 #define INF 1000000000 //#define INF 1000000000000000000 int main(){ int N; ll S; cin>>N>>S; vector P(N); for(int i=0;i>P[i]; } vector> a; int m=N-N/2; for(int i=0;i<(1<>(m-1-j))&1)==0){ sum+=P[N/2+j]; } } a.push_back(make_pair(sum,i)); } sort(a.begin(),a.end()); int n=N/2; for(int i=0;i<(1<>(n-1-j))&1)==0){ sum+=P[j]; } } int k=lower_bound(a.begin(),a.end(),make_pair(S-sum,0))-a.begin(); while(k>(n-1-j))&1)==0){ cout<>(m-1-j))&1)==0){ cout<