N,W = map(int,input().split()) A = list(map(int,input().split())) ans = 0 for b in range(1<0: j = b - i s = 0 for k in range(N): if i&(1<