import sys input=sys.stdin.readline N,W=map(int,input().split()) A=[0]*N for i in range(N): A[i]=int(input()) Set=set() Total=0 X=0 R=0 for L in range(N): while R