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