N, W = map(int, input().split()) A = list(map(int, input().split())) if W == 0: cnt = 0 for a in A: if a == 0: cnt += 1 print((1<> bit & 1 == 1: g.append(A[bit]) num = len(g) for mask2 in range(1<> bit2 & 1 == 1: cost += g[bit2] // 2 else: cost += g[bit2] if cost == W: ans += 1 break print(ans)