N,X = map(int,input().split())
L = list(map(int,input().split()))
ans = 1
d = 0
for l in L:
    d += l
    if X >= d:
        ans += 1
print(ans) 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 ans = 1 ans 1 d = 0 d 0 for l in L:
    d += l
    if X >= d:
        ans += 1 l L d += l d l if X >= d:
        ans += 1 X >= d X d ans += 1 ans 1 print(ans) print ans L = list(map(int,input().split())) list(map(int,input().split())) L N,X = map(int,input().split()) map(int,input().split()) N d = 0 0 d d += l l d X = map(int,input().split()) map(int,input().split()) X ans = 1 1 ans ans += 1 1 ans
N,X = map(int,input().split())
L = list(map(int,input().split()))
ans = 1
d = 0
for l in L:
    d += l
    if X >= d:
        ans += 1
print(ans)