n,x = map(int,input().split())
L = list(map(int,input().split()))
y = 0
ans = 0
for i in range(n):
  if y<=x:
    ans+=1
  y+=L[i]

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

if y<=x:
  ans+=1
print(ans)