read = lambda: list(map(int, input().split()))
n, x = read()
l = read()
s = 0
ans = 1
for ind, d in enumerate(l):
    s += d
    if s > x:
        break
    ans += 1
print(ans) read = lambda: list(map(int, input().split())) read lambda: list(map(int, input().split())) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split n, x = read() n read() read x l = read() l read() read s = 0 s 0 ans = 1 ans 1 for ind, d in enumerate(l):
    s += d
    if s > x:
        break
    ans += 1 ind d enumerate(l) enumerate l s += d s d if s > x:
        break
     s > x s x break ans += 1 ans 1 print(ans) print ans n, x = read() read() n read = lambda: list(map(int, input().split())) lambda: list(map(int, input().split())) read ans = 1 1 ans s += d d s l = read() read() l s = 0 0 s ans += 1 1 ans x = read() read() x
read = lambda: list(map(int, input().split()))
n, x = read()
l = read()
s = 0
ans = 1
for ind, d in enumerate(l):
    s += d
    if s > x:
        break
    ans += 1
print(ans)