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