n,x=map(int,input().split())
a=list(map(int,input().split()))
sum=0
ans=1
for i in range(n) :
    sum+=a[i]
    if sum <= x :
        ans+=1
print(ans) n,x=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split x a=list(map(int,input().split())) a list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split sum=0 sum 0 ans=1 ans 1 for i in range(n) :
    sum+=a[i]
    if sum <= x :
        ans+=1 i range(n) range n sum+=a[i] sum a[i] a i if sum <= x :
        ans+=1 sum <= x sum x ans+=1 ans 1 print(ans) print ans ans+=1 1 ans x=map(int,input().split()) map(int,input().split()) x n,x=map(int,input().split()) map(int,input().split()) n sum+=a[i] a[i] sum a=list(map(int,input().split())) list(map(int,input().split())) a sum=0 0 sum ans=1 1 ans
n,x=map(int,input().split())
a=list(map(int,input().split()))
sum=0
ans=1
for i in range(n) :
    sum+=a[i]
    if sum <= x :
        ans+=1
print(ans)