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

cnt = 1
z = 0

for i in range(n):
    z += l[i]
    if z <= x:
        cnt += 1
        
print(cnt) 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 cnt = 1 cnt 1 z = 0 z 0 for i in range(n):
    z += l[i]
    if z <= x:
        cnt += 1
         i range(n) range n z += l[i] z l[i] l i if z <= x:
        cnt += 1
         z <= x z x cnt += 1 cnt 1 print(cnt) print cnt x = map(int, input().split()) map(int, input().split()) x cnt = 1 1 cnt z += l[i] l[i] z n, x = map(int, input().split()) map(int, input().split()) n cnt += 1 1 cnt z = 0 0 z l = list(map(int, input().split())) list(map(int, input().split())) l
n, x = map(int, input().split())
l = list(map(int, input().split()))

cnt = 1
z = 0

for i in range(n):
    z += l[i]
    if z <= x:
        cnt += 1
        
print(cnt)