N, X = map(int, input().split())
L = [0] + list(map(int, input().split()))

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

c = 0
for s in S:
    if s <= X:
        c += 1
print(c) N, X = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split X L = [0] + list(map(int, input().split())) L [0] + list(map(int, input().split())) [0] 0 list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split s = 0 s 0 S = [] S [] for i in range(N+1):
    s += L[i]
    S.append(s) i range(N+1) range N+1 N 1 s += L[i] s L[i] L i S.append(s) S.append S append s c = 0 c 0 for s in S:
    if s <= X:
        c += 1 s S if s <= X:
        c += 1 s <= X s X c += 1 c 1 print(c) print c N, X = map(int, input().split()) map(int, input().split()) N s = 0 0 s s += L[i] L[i] s X = map(int, input().split()) map(int, input().split()) X c = 0 0 c L = [0] + list(map(int, input().split())) [0] + list(map(int, input().split())) L S = [] [] S c += 1 1 c
N, X = map(int, input().split())
L = [0] + list(map(int, input().split()))

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

c = 0
for s in S:
    if s <= X:
        c += 1
print(c)
