n,x = map(int, input().split())
l = list(map(int, input().split()))

cnt = 1
d = 0

for i in range(n):
  d += l[i]
  if d <= x:
    cnt += 1
  else:
    break

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 cnt = 1 cnt 1 d = 0 d 0 for i in range(n):
  d += l[i]
  if d <= x:
    cnt += 1
  else:
    break i range(n) range n d += l[i] d l[i] l i if d <= x:
    cnt += 1
  else:
    break d <= x d x cnt += 1 cnt 1 break print(cnt) print cnt x = map(int, input().split()) map(int, input().split()) x d = 0 0 d n,x = map(int, input().split()) map(int, input().split()) n d += l[i] l[i] d cnt += 1 1 cnt l = list(map(int, input().split())) list(map(int, input().split())) l cnt = 1 1 cnt
n,x = map(int, input().split())
l = list(map(int, input().split()))

cnt = 1
d = 0

for i in range(n):
  d += l[i]
  if d <= x:
    cnt += 1
  else:
    break

print(cnt)