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