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

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

ans, D = 1, 0
for l in L:
    D += l
    if D <= X:
        ans += 1

print(ans)