N, val= list(map(int,input().split()))
list = list(map(int,input().split()))
d=0
l=[]
for i in list:
  d=d+i
  l.append(d)
count=0
for num in l:
  if num<=val:
    count=count+1
print(count+1) N, val= list(map(int,input().split())) N list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split val list = list(map(int,input().split())) list list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split d=0 d 0 l=[] l [] for i in list:
  d=d+i
  l.append(d) i list d=d+i d d+i d i l.append(d) l.append l append d count=0 count 0 for num in l:
  if num<=val:
    count=count+1 num l if num<=val:
    count=count+1 num<=val num val count=count+1 count count+1 count 1 print(count+1) print count+1 count 1 N, val= list(map(int,input().split())) list(map(int,input().split())) N val= list(map(int,input().split())) list(map(int,input().split())) val d=d+i d+i d count=0 0 count list = list(map(int,input().split())) list(map(int,input().split())) list d=0 0 d l=[] [] l count=count+1 count+1 count
N, val= list(map(int,input().split()))
list = list(map(int,input().split()))
d=0
l=[]
for i in list:
  d=d+i
  l.append(d)
count=0
for num in l:
  if num<=val:
    count=count+1
print(count+1)