#include using namespace std; using LL = long long; using ULL = unsigned long long; #define rep(i,n) for(int i=0; i<(n); i++) const ULL M=1000000007; const int Z=20001; ULL dp[Z] = {}; ULL dpb[Z] = {}; int main() { int N,K; scanf("%d%d",&N,&K); int A[100]; rep(i,N){ scanf("%d",&A[i]); A[i]-=K; } dp[Z/2]=1; rep(i,N){ rep(i,Z) dpb[i]=dp[i]; for(int j=100; j