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