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

sum = 0
cnt = 1
for i in range(0,len(l)):
    sum += l[i]
    if sum <= x:
        cnt += 1
print(cnt) 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 = 0 sum 0 cnt = 1 cnt 1 for i in range(0,len(l)):
    sum += l[i]
    if sum <= x:
        cnt += 1 i range(0,len(l)) range 0 len(l) len l sum += l[i] sum l[i] l i if sum <= x:
        cnt += 1 sum <= x sum x cnt += 1 cnt 1 print(cnt) print cnt cnt = 1 1 cnt sum += l[i] l[i] sum cnt += 1 1 cnt n,x = map(int,input().split()) map(int,input().split()) n x = map(int,input().split()) map(int,input().split()) x sum = 0 0 sum l = list(map(int,input().split())) list(map(int,input().split())) l
n,x = map(int,input().split())
l = list(map(int,input().split()))

sum = 0
cnt = 1
for i in range(0,len(l)):
    sum += l[i]
    if sum <= x:
        cnt += 1
print(cnt)