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

D = 0
num = 1

while num <= N:
  D = D + L[num-1]
  if D > X:
    print(num)
    break
  num += 1
else:
  print(N+1) 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 D 0 num = 1 num 1 while num <= N:
  D = D + L[num-1]
  if D > X:
    print(num)
    break
  num += 1
else:
  print(N+1) num <= N num N D = D + L[num-1] D D + L[num-1] D L[num-1] L num-1 num 1 if D > X:
    print(num)
    break
   D > X D X print(num) print num break num += 1 num 1 print(N+1) print N+1 N 1 L = list(map(int, input().split())) list(map(int, input().split())) L N, X = map(int, input().split()) map(int, input().split()) N num += 1 1 num X = map(int, input().split()) map(int, input().split()) X num = 1 1 num D = D + L[num-1] D + L[num-1] D D = 0 0 D
N, X = map(int, input().split())
L = list(map(int, input().split()))

D = 0
num = 1

while num <= N:
  D = D + L[num-1]
  if D > X:
    print(num)
    break
  num += 1
else:
  print(N+1)