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