#include int a; long long int b; int x[110]; int check[1000010]; void func(int k, int bit, long long int sum) { if(k>a) { if(sum==b) check[bit] = 1; return; } func(k+1,bit,sum); func(k+1,bit+(1<<(k-1)),sum+x[k]/2); func(k+1,bit+(1<<(k-1)),sum+x[k]); } int main() { scanf("%d%lld",&a,&b); for(int i=1;i<=a;i++) scanf("%d",&x[i]); func(1,0,0); int ans = 0; for(int i=0;i<(1<