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

x = 0
ii = 1
for i in ls1:
    x = x + i
    if x > X:
        break
    ii += 1
print(ii) N,X=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split X ls1=list(map(int,input().split())) ls1 list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split x = 0 x 0 ii = 1 ii 1 for i in ls1:
    x = x + i
    if x > X:
        break
    ii += 1 i ls1 x = x + i x x + i x i if x > X:
        break
     x > X x X break ii += 1 ii 1 print(ii) print ii N,X=map(int,input().split()) map(int,input().split()) N x = 0 0 x x = x + i x + i x ii += 1 1 ii ii = 1 1 ii ls1=list(map(int,input().split())) list(map(int,input().split())) ls1 X=map(int,input().split()) map(int,input().split()) X
N,X=map(int,input().split())
ls1=list(map(int,input().split()))

x = 0
ii = 1
for i in ls1:
    x = x + i
    if x > X:
        break
    ii += 1
print(ii)
