import sys input = sys.stdin.readline N, X = map(int, input().split()) A = list(map(int, input().split())) S = [0] for a in A: S.append(S[-1]+a) ans = 0 i = 0 j = 0 tmp = 0 while i