N,X=map(int,input().split())
L=[int(x) for x in input().split()]
D=[0]*(N+1)
for i in range(1,N+1):
    D[i]=D[i-1]+L[i-1]
ans=0
for d in D:
    if d<=X:
        ans+=1
print(ans) N,X=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split X int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x L=[int(x) for x in input().split()] L [int(x) for x in input().split()] D=[0]*(N+1) D [0]*(N+1) [0] 0 N+1 N 1 for i in range(1,N+1):
    D[i]=D[i-1]+L[i-1] i range(1,N+1) range 1 N+1 N 1 D[i]=D[i-1]+L[i-1] D[i] D i D[i-1]+L[i-1] D[i-1] D i-1 i 1 L[i-1] L i-1 i 1 ans=0 ans 0 for d in D:
    if d<=X:
        ans+=1 d D if d<=X:
        ans+=1 d<=X d X ans+=1 ans 1 print(ans) print ans L=[int(x) for x in input().split()] [int(x) for x in input().split()] L ans+=1 1 ans D=[0]*(N+1) [0]*(N+1) D N,X=map(int,input().split()) map(int,input().split()) N ans=0 0 ans X=map(int,input().split()) map(int,input().split()) X
N,X=map(int,input().split())
L=[int(x) for x in input().split()]
D=[0]*(N+1)
for i in range(1,N+1):
    D[i]=D[i-1]+L[i-1]
ans=0
for d in D:
    if d<=X:
        ans+=1
print(ans)
