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