#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define popcount __builtin_popcount using namespace std; using ll=long long; typedef pair P; int main() { int n; ll v; cin>>n>>v; ll a[20]; for(int i=0; i>a[i]; } ll s[1<<20]={}; for(int i=0; i<(1<=0; i--){ if(s[i]>v){ continue; } bool dame=1; for(int j=0; jv) continue; if(!dp[i^(1<