a=list(map(int,input().split()))
b=list(map(int,input().split()))
no=1
for i in range(1,a[0]):
    b[i]+=b[i-1]
for i in range(0,a[0]):
    if(a[1]>=b[i]):
        no+=1
    else:
        break
print(no)         a=list(map(int,input().split())) a list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split b=list(map(int,input().split())) b list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split no=1 no 1 for i in range(1,a[0]):
    b[i]+=b[i-1] i range(1,a[0]) range 1 a[0] a 0 b[i]+=b[i-1] b[i] b i b[i-1] b i-1 i 1 for i in range(0,a[0]):
    if(a[1]>=b[i]):
        no+=1
    else:
        break i range(0,a[0]) range 0 a[0] a 0 if(a[1]>=b[i]):
        no+=1
    else:
        break a[1]>=b[i] a[1] a 1 b[i] b i no+=1 no 1 break print(no) print no b=list(map(int,input().split())) list(map(int,input().split())) b no+=1 1 no a=list(map(int,input().split())) list(map(int,input().split())) a no=1 1 no
a=list(map(int,input().split()))
b=list(map(int,input().split()))
no=1
for i in range(1,a[0]):
    b[i]+=b[i-1]
for i in range(0,a[0]):
    if(a[1]>=b[i]):
        no+=1
    else:
        break
print(no)        