N, X = map(int, input().split())
L = list(map(int, input().split()))
ans = 1
now = 0
for i in range(N):
    now += L[i]
    if now <= X:
        ans += 1
    else:
        break
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 now = 0 now 0 for i in range(N):
    now += L[i]
    if now <= X:
        ans += 1
    else:
        break i range(N) range N now += L[i] now L[i] L i if now <= X:
        ans += 1
    else:
        break now <= X now X ans += 1 ans 1 break print(ans) print ans ans += 1 1 ans L = list(map(int, input().split())) list(map(int, input().split())) L X = map(int, input().split()) map(int, input().split()) X now = 0 0 now N, X = map(int, input().split()) map(int, input().split()) N now += L[i] L[i] now ans = 1 1 ans
N, X = map(int, input().split())
L = list(map(int, input().split()))
ans = 1
now = 0
for i in range(N):
    now += L[i]
    if now <= X:
        ans += 1
    else:
        break
print(ans)
