import sys input = sys.stdin.readline N,K=map(int,input().split()) A=list(map(int,input().split())) DP=[0]*N MAX=(1<<(K+1))-1 now=1<<0 for i in range(N): a=A[i] now=(now|(now<=0: left=DP[i-1] else: left=1<<0 if i+1