#include #define int long long using namespace std; const int N=1010; int n,m; int a[N],ans=0; mapmp; void dfs(int u,int res,int f){ if(u>n){ if(res==m){ if(!mp.count(f)&&f){ mp[f]=1; ans++; } } return ; } dfs(u+1,res+a[u],f+(1<>n>>m; assert(n>=1&&n<=13); assert(m>=0&&m<=1e9); for(int i=1;i<=n;i++){ cin>>a[i]; assert(a[i]>=0&&a[i]<=1e9); } dfs(1,0,0); cout<