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