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

D = 0
ans = 1

for i in range(N):
    D += Ls[i]
    if D <= X:
        ans += 1
    else:
        break

print(ans) N,X = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split X Ls = list(map(int,input().split())) Ls list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split D = 0 D 0 ans = 1 ans 1 for i in range(N):
    D += Ls[i]
    if D <= X:
        ans += 1
    else:
        break i range(N) range N D += Ls[i] D Ls[i] Ls i if D <= X:
        ans += 1
    else:
        break D <= X D X ans += 1 ans 1 break print(ans) print ans X = map(int,input().split()) map(int,input().split()) X ans = 1 1 ans ans += 1 1 ans D = 0 0 D D += Ls[i] Ls[i] D N,X = map(int,input().split()) map(int,input().split()) N Ls = list(map(int,input().split())) list(map(int,input().split())) Ls
N,X = map(int,input().split())
Ls = list(map(int,input().split()))

D = 0
ans = 1

for i in range(N):
    D += Ls[i]
    if D <= X:
        ans += 1
    else:
        break

print(ans)