n,x = map(int,input().split())
bound = list(map(int,input().split()))
cnt = 1
pos = 0
for i in range(n):
  pos += bound[i]
  if pos <= x:
    cnt += 1
  if pos > x:
    break
print(cnt) n,x = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split x bound = list(map(int,input().split())) bound list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split cnt = 1 cnt 1 pos = 0 pos 0 for i in range(n):
  pos += bound[i]
  if pos <= x:
    cnt += 1
  if pos > x:
    break i range(n) range n pos += bound[i] pos bound[i] bound i if pos <= x:
    cnt += 1
   pos <= x pos x cnt += 1 cnt 1 if pos > x:
    break pos > x pos x break print(cnt) print cnt x = map(int,input().split()) map(int,input().split()) x cnt = 1 1 cnt n,x = map(int,input().split()) map(int,input().split()) n pos = 0 0 pos bound = list(map(int,input().split())) list(map(int,input().split())) bound pos += bound[i] bound[i] pos cnt += 1 1 cnt
n,x = map(int,input().split())
bound = list(map(int,input().split()))
cnt = 1
pos = 0
for i in range(n):
  pos += bound[i]
  if pos <= x:
    cnt += 1
  if pos > x:
    break
print(cnt)