n,x=map(int, input().split())

l_list=[int(i) for i in input().split()]

d=0
count=1
for i in range(n):
    d=d+l_list[i]
    if d<=x:
        count+=1

print(count) n,x=map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split x int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i l_list=[int(i) for i in input().split()] l_list [int(i) for i in input().split()] d=0 d 0 count=1 count 1 for i in range(n):
    d=d+l_list[i]
    if d<=x:
        count+=1 i range(n) range n d=d+l_list[i] d d+l_list[i] d l_list[i] l_list i if d<=x:
        count+=1 d<=x d x count+=1 count 1 print(count) print count d=d+l_list[i] d+l_list[i] d l_list=[int(i) for i in input().split()] [int(i) for i in input().split()] l_list d=0 0 d x=map(int, input().split()) map(int, input().split()) x n,x=map(int, input().split()) map(int, input().split()) n count=1 1 count count+=1 1 count
n,x=map(int, input().split())

l_list=[int(i) for i in input().split()]

d=0
count=1
for i in range(n):
    d=d+l_list[i]
    if d<=x:
        count+=1

print(count)
