n,k=map(int,input().split())
s=0
l=list(map(int,input().split()))
c=1
for i in range(n):
    s+=l[i]
    if(k<s):
        break
    c+=1
print(c) n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k s=0 s 0 l=list(map(int,input().split())) l list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split c=1 c 1 for i in range(n):
    s+=l[i]
    if(k<s):
        break
    c+=1 i range(n) range n s+=l[i] s l[i] l i if(k<s):
        break
     k<s k s break c+=1 c 1 print(c) print c s=0 0 s n,k=map(int,input().split()) map(int,input().split()) n c=1 1 c s+=l[i] l[i] s k=map(int,input().split()) map(int,input().split()) k c+=1 1 c l=list(map(int,input().split())) list(map(int,input().split())) l
n,k=map(int,input().split())
s=0
l=list(map(int,input().split()))
c=1
for i in range(n):
    s+=l[i]
    if(k<s):
        break
    c+=1
print(c)
