n,x = map(int, input().split())
ll = list(map(int, input().split()))
cnt = 1
v = 0
for l in ll:
    v += l
    if v > x:
        break
    else:
        cnt += 1

print(cnt) n,x = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split x ll = list(map(int, input().split())) ll list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split cnt = 1 cnt 1 v = 0 v 0 for l in ll:
    v += l
    if v > x:
        break
    else:
        cnt += 1 l ll v += l v l if v > x:
        break
    else:
        cnt += 1 v > x v x break cnt += 1 cnt 1 print(cnt) print cnt cnt += 1 1 cnt x = map(int, input().split()) map(int, input().split()) x n,x = map(int, input().split()) map(int, input().split()) n ll = list(map(int, input().split())) list(map(int, input().split())) ll v = 0 0 v v += l l v cnt = 1 1 cnt
n,x = map(int, input().split())
ll = list(map(int, input().split()))
cnt = 1
v = 0
for l in ll:
    v += l
    if v > x:
        break
    else:
        cnt += 1

print(cnt)