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