N,X=map(int,input().split())
L=list(map(int,input().split()))

x=0
count=1
for i in range(N):
  x += L[i]
  if x > X:break
  count+=1
print(count) N,X=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split X L=list(map(int,input().split())) L list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split x=0 x 0 count=1 count 1 for i in range(N):
  x += L[i]
  if x > X:break
  count+=1 i range(N) range N x += L[i] x L[i] L i if x > X:break
   x > X x X count+=1 count 1 print(count) print count X=map(int,input().split()) map(int,input().split()) X count+=1 1 count x += L[i] L[i] x L=list(map(int,input().split())) list(map(int,input().split())) L x=0 0 x count=1 1 count N,X=map(int,input().split()) map(int,input().split()) N
N,X=map(int,input().split())
L=list(map(int,input().split()))

x=0
count=1
for i in range(N):
  x += L[i]
  if x > X:break
  count+=1
print(count)