a,b=map(int,input().split())
list=list(map(int,input().split()))
 
count=0
count2=1
for i in range(a):
  count+=list[i]
  if count<=b:
    count2+=1
    
print(count2) a,b=map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b list=list(map(int,input().split())) list list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split count=0 count 0 count2=1 count2 1 for i in range(a):
  count+=list[i]
  if count<=b:
    count2+=1
     i range(a) range a count+=list[i] count list[i] list i if count<=b:
    count2+=1
     count<=b count b count2+=1 count2 1 print(count2) print count2 count2=1 1 count2 a,b=map(int,input().split()) map(int,input().split()) a b=map(int,input().split()) map(int,input().split()) b count+=list[i] list[i] count count=0 0 count count2+=1 1 count2 list=list(map(int,input().split())) list(map(int,input().split())) list
a,b=map(int,input().split())
list=list(map(int,input().split()))
 
count=0
count2=1
for i in range(a):
  count+=list[i]
  if count<=b:
    count2+=1
    
print(count2)
