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