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

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

m = 0
ans = 1
for l in L:
    m += l
    if m > X:
        print(ans)
        exit()
    else:
        ans += 1

print(ans)