N,X = map(int,input().split())
L = list(map(int,input().split()))
sum_list = [sum(L[:i]) for i in range(N+1)] 
count = 0
for i in sum_list:
    if i <= X:
        count +=1
print(count) 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 sum(L[:i]) for i in range(N+1) for i in range(N+1) i range(N+1) range N+1 N 1 for i in range(N+1) sum(L[:i]) sum L[:i] L :i i sum_list = [sum(L[:i]) for i in range(N+1)] sum_list [sum(L[:i]) for i in range(N+1)] count = 0 count 0 for i in sum_list:
    if i <= X:
        count +=1 i sum_list if i <= X:
        count +=1 i <= X i X count +=1 count 1 print(count) print count count +=1 1 count L = list(map(int,input().split())) list(map(int,input().split())) L N,X = map(int,input().split()) map(int,input().split()) N count = 0 0 count sum_list = [sum(L[:i]) for i in range(N+1)] [sum(L[:i]) for i in range(N+1)] sum_list X = map(int,input().split()) map(int,input().split()) X
N,X = map(int,input().split())
L = list(map(int,input().split()))
sum_list = [sum(L[:i]) for i in range(N+1)] 
count = 0
for i in sum_list:
    if i <= X:
        count +=1
print(count)