N,X = map(int, input().split())
L = list(map(int, input().split()))
count = 1
D = 0

for i in range(N):
  D += L[i]
  if D <= X:
    count += 1
  else:
    break

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

for i in range(N):
  D += L[i]
  if D <= X:
    count += 1
  else:
    break

print(count)