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