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

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

cnt = 1
p = 0
for i in range(N):
    p += L[i]
    if p <= X:
        cnt += 1

print(cnt)