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

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



D = 0

count = 1



for l in L:

    D += l



    if D <= X:

        count += 1



    else:

        break



print(count)

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

now = 0

res = 1

for l in map(int, input().split()):

    now += l

    if now <= X:

        res += 1



print(res)



N, X = list(map(int, input().split()))
L = list(map(int, input().split()))
D = 0
count = 1
for l in L:
    D += l
    if D <= X:
        count += 1
    else:
        break
print(count)

N, X = list(map(int, input().split()))
now = 0
res = 1
for l in map(int, input().split()):
    now += l
    if now <= X:
        res += 1
print(res)

-L = list(map(int, input().split())) -D = 0 -count = 1 -for l in L: -    D += l -    if D <= X: -        count += 1 -    else: -        break -print(count) +now = 0 +res = 1 +for l in map(int, input().split()): +    now += l +    if now <= X: +        res += 1 +print(res)