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