#yuki1090 n,d=map(int,input().split()) a=list(map(int,input().split())) l=[0]*n b=[0] b.extend(a) for i in range(n): l[i]=l[i-1]+b[i] for i in range(1,n): if l[i]-l[i-1]