n,x=map(int,input().split())
l=list(map(int,input().split()))

d=0
cnt=1

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

d=0
cnt=1

for i in range(1,n+1):
    d=d+l[i-1]
    if d<=x:
        cnt+=1

print(cnt)
