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

count = 1

d = 0

for x  in l:
    d = d + x

    if d <= X:
        count += 1

print(count) 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 count = 1 count 1 d = 0 d 0 for x  in l:
    d = d + x

    if d <= X:
        count += 1 x l d = d + x d d + x d x if d <= X:
        count += 1 d <= X d X count += 1 count 1 print(count) print count count = 1 1 count l=list(map(int,input().split())) list(map(int,input().split())) l X=map(int,input().split()) map(int,input().split()) X count += 1 1 count d = d + x d + x d N,X=map(int,input().split()) map(int,input().split()) N d = 0 0 d
N,X=map(int,input().split())
l=list(map(int,input().split()))

count = 1

d = 0

for x  in l:
    d = d + x

    if d <= X:
        count += 1

print(count)