N, X = map(int, input().split())
l = [0] + list(map(int, input().split()))
d = [0]

for i in range(1, N+1):
    d.append(d[-1]+l[i])

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

for i in range(1, N+1):
    d.append(d[-1]+l[i])

cnt = 0
for i in d:
    if i <= X:
      cnt += 1
print(cnt)