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