#include #include using namespace std; int N,M; int E[16]; int V[16],W[16]; int sV[1<<16]; long sW[1<<16]; int dp[17][1<<16]; int pr[17][1<<16]; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cin>>N>>M; for(int i=0;i>E[N-i-1]; for(int i=0;i>V[i]>>W[i]; for(int i=0;i<1<>j&1) { sV[i]+=V[j]; sW[i]+=W[j]; } } for(int i=0;i<=N;i++)for(int j=0;j<1<=0) { int r=(1<=0;k--) { k&=r; if(sW[k]<=E[i]&&dp[i+1][j|k]>l&1)cout<<" "<