n,x=map(int,input().split())
l=list(map(int,input().split()))
i=z=0
while z<=x and i<n:
    z+=l[i]
    i+=1
if z<=x:
    i+=1
print(i) n,x=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split x l=list(map(int,input().split())) l list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split i=z=0 i 0 =z=0 z 0 while z<=x and i<n:
    z+=l[i]
    i+=1 z<=x and i<n z<=x z x i<n i n z+=l[i] z l[i] l i i+=1 i 1 if z<=x:
    i+=1 z<=x z x i+=1 i 1 print(i) print i i=z=0 0 i z+=l[i] l[i] z l=list(map(int,input().split())) list(map(int,input().split())) l i+=1 1 i i+=1 1 i n,x=map(int,input().split()) map(int,input().split()) n z=0 0 z x=map(int,input().split()) map(int,input().split()) x
n,x=map(int,input().split())
l=list(map(int,input().split()))
i=z=0
while z<=x and i<n:
    z+=l[i]
    i+=1
if z<=x:
    i+=1
print(i)