#!/usr/bin/env python3 import sys input=sys.stdin.readline n,d=map(int,input().split()) arr=list(map(int,input().split())) ans=[0] for i in range(n-1): ans.append(ans[-1]+arr[i]) for i in range(1,n): if ans[i]-ans[i-1]