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