N,W=map(int,input().split()) A=list(map(int,input().split())) ANS=0 for j in range(1<