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

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

D = 0
result = [0]
for i in range(N):
    D = D + L[i]
    if D>X:
        print(i+1)
        quit()
print(N+1)
