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

D = []
D.append(0)

for i in range(0,N):
  D.append(D[i]+L[i])

cnt = 0
for d in D:
  if d <= X:
    cnt += 1
    
print(cnt) 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 D = [] D [] D.append(0) D.append D append 0 for i in range(0,N):
  D.append(D[i]+L[i]) i range(0,N) range 0 N D.append(D[i]+L[i]) D.append D append D[i]+L[i] D[i] D i L[i] L i cnt = 0 cnt 0 for d in D:
  if d <= X:
    cnt += 1
     d D if d <= X:
    cnt += 1
     d <= X d X cnt += 1 cnt 1 print(cnt) print cnt cnt += 1 1 cnt D = [] [] D N,X = map(int,input().split()) map(int,input().split()) N cnt = 0 0 cnt X = map(int,input().split()) map(int,input().split()) X L = list(map(int,input().split())) list(map(int,input().split())) L
N,X = map(int,input().split())
L = list(map(int,input().split()))

D = []
D.append(0)

for i in range(0,N):
  D.append(D[i]+L[i])

cnt = 0
for d in D:
  if d <= X:
    cnt += 1
    
print(cnt)