n,x=[int(x) for x in input().split()]
l=[int(x) for x in input().split()]
d=0
cnt=1
for i in range(n):
  d=d+l[i]
  if d<=x:
    cnt+=1
print(cnt) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x n,x=[int(x) for x in input().split()] n [int(x) for x in input().split()] x int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x l=[int(x) for x in input().split()] l [int(x) for x in input().split()] d=0 d 0 cnt=1 cnt 1 for i in range(n):
  d=d+l[i]
  if d<=x:
    cnt+=1 i range(n) range n d=d+l[i] d d+l[i] d l[i] l i if d<=x:
    cnt+=1 d<=x d x cnt+=1 cnt 1 print(cnt) print cnt n,x=[int(x) for x in input().split()] [int(x) for x in input().split()] n d=0 0 d x=[int(x) for x in input().split()] [int(x) for x in input().split()] x l=[int(x) for x in input().split()] [int(x) for x in input().split()] l cnt=1 1 cnt cnt+=1 1 cnt d=d+l[i] d+l[i] d
n,x=[int(x) for x in input().split()]
l=[int(x) for x in input().split()]
d=0
cnt=1
for i in range(n):
  d=d+l[i]
  if d<=x:
    cnt+=1
print(cnt)