n, x = (int(xi) for xi in input().split())
l = [int(xi) for xi in input().split()]

d=0

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

if d<x+1:
    count +=1

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

d=0

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

if d<x+1:
    count +=1

print(count)
