n, x = list(map(int, input().split()))

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

s = 0

c = 1

for l in ls:

    s += l

    if s > x:

        break

    c += 1

print(c)

n, x = list(map(int, input().split()))

d = [0]

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

    d.append(d[-1] + l)

print((sum(dx <= x for dx in d)))
n, x = list(map(int, input().split()))
ls = list(map(int, input().split()))
s = 0
c = 1
for l in ls:
    s += l
    if s > x:
        break
    c += 1
print(c)

n, x = list(map(int, input().split()))
d = [0]
for l in map(int, input().split()):
    d.append(d[-1] + l)
print((sum(dx <= x for dx in d)))

-ls = list(map(int, input().split())) -s = 0 -c = 1 -for l in ls: -    s += l -    if s > x: -        break -    c += 1 -print(c) +d = [0] +for l in map(int, input().split()): +    d.append(d[-1] + l) +print((sum(dx <= x for dx in d)))