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

L = list(map(int, input().split()))

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

L = list(map(int, input().split()))

K = [0]
for i in range(len(L)):
  K.append(K[i] + L[i])
ans = 0
for i in range(len(K)):
  if K[i] <= x:
    ans += 1
print(ans)