n, x = map(int, input().split())
l = list(map(int, input().split()))

bound = [0]
for i in range(n):
    bound.append(bound[i] + l[i])

ans = 0
for j in range(n+1):
    if bound[j] <= 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 bound = [0] bound [0] 0 for i in range(n):
    bound.append(bound[i] + l[i]) i range(n) range n bound.append(bound[i] + l[i]) bound.append bound append bound[i] + l[i] bound[i] bound i l[i] l i ans = 0 ans 0 for j in range(n+1):
    if bound[j] <= x:
        ans += 1 j range(n+1) range n+1 n 1 if bound[j] <= x:
        ans += 1 bound[j] <= x bound[j] bound j x ans += 1 ans 1 print(ans) print ans ans = 0 0 ans ans += 1 1 ans bound = [0] [0] bound x = map(int, input().split()) map(int, input().split()) x l = list(map(int, input().split())) list(map(int, input().split())) l n, x = map(int, input().split()) map(int, input().split()) n
n, x = map(int, input().split())
l = list(map(int, input().split()))

bound = [0]
for i in range(n):
    bound.append(bound[i] + l[i])

ans = 0
for j in range(n+1):
    if bound[j] <= x:
        ans += 1
print(ans)
