N, X = map(int, input().split())
L = list(map(int, input().split()))

D = [0]
for i in range(N):
    D.append(D[i]+L[i])

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

D = [0]
for i in range(N):
    D.append(D[i]+L[i])

ans = 0
for i in D:
    if i <= X:
        ans += 1

print(ans)