n,x=map(int,input().split())
arr=list(map(int,input().split()))
d=0
ans=1
for a in arr:
  d+=a
  if d <= x:
    ans+=1
print(ans) n,x=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split x arr=list(map(int,input().split())) arr list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split d=0 d 0 ans=1 ans 1 for a in arr:
  d+=a
  if d <= x:
    ans+=1 a arr d+=a d a if d <= x:
    ans+=1 d <= x d x ans+=1 ans 1 print(ans) print ans x=map(int,input().split()) map(int,input().split()) x arr=list(map(int,input().split())) list(map(int,input().split())) arr d+=a a d n,x=map(int,input().split()) map(int,input().split()) n d=0 0 d ans=1 1 ans ans+=1 1 ans
n,x=map(int,input().split())
arr=list(map(int,input().split()))
d=0
ans=1
for a in arr:
  d+=a
  if d <= x:
    ans+=1
print(ans)
