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