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