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

ans =1
height=0
for i in range(N):
    height += arr[i]
    if height > X:
        break
    ans += 1

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

ans =1
height=0
for i in range(N):
    height += arr[i]
    if height > X:
        break
    ans += 1

print(ans)
