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