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