V, N = map(int, input().split())
# 输入有点迷啊。。一会一行,一会多行
money = []
while len(money) != V:
money.extend(list(map(int, input().split())))
dp = [0] * (N+1)
dp[0] = 1
for m in money:
for j in range(m, N+1): # 完全背包
dp[j] += dp[j-m]
print(dp[-1])
我就是跑来看Python输入来了233