from collections import deque n,w=map(int,input().split()) A=list(map(int,input().split())) ans=0 ind=deque() for i in range(1<