inpl = lambda: list(map(int,input().split()))

N, X = inpl()

L = inpl()

q = 0

for i in range(N):

    q += L[i]

    if q > X:

        break

else:

    i += 1

print((i+1))
inpl = lambda: list(map(int,input().split()))

N, X = inpl()

L = inpl()

P = 0

for i in range(N):

    P += L[i]

    if P > X:

        print((i+1))

        break

else:

    print((N+1))
inpl = lambda: list(map(int, input().split()))
N, X = inpl()
L = inpl()
q = 0
for i in range(N):
    q += L[i]
    if q > X:
        break
else:
    i += 1
print((i + 1))

inpl = lambda: list(map(int, input().split()))
N, X = inpl()
L = inpl()
P = 0
for i in range(N):
    P += L[i]
    if P > X:
        print((i + 1))
        break
else:
    print((N + 1))

-q = 0 +P = 0 -    q += L[i] -    if q > X: +    P += L[i] +    if P > X: +        print((i + 1)) -    i += 1 -print((i + 1)) +    print((N + 1))