N,X=map(int,input().split())
p=0
cnt=1
for i in map(int,input().split()):
 p+=i
 if (X<p):break
 cnt+=1
print(cnt) N,X=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split X p=0 p 0 cnt=1 cnt 1 for i in map(int,input().split()):
 p+=i
 if (X<p):break
 cnt+=1 i map(int,input().split()) map int input().split() ().split () input split p+=i p i if (X<p):break
  X<p X p cnt+=1 cnt 1 print(cnt) print cnt cnt=1 1 cnt X=map(int,input().split()) map(int,input().split()) X p+=i i p cnt+=1 1 cnt N,X=map(int,input().split()) map(int,input().split()) N p=0 0 p
N,X=map(int,input().split())
p=0
cnt=1
for i in map(int,input().split()):
 p+=i
 if (X<p):break
 cnt+=1
print(cnt)