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