N,X = map(int,input().split())
L = list(map(int,input().split()))
List = [0]*(N+1)
for i in range(1,N+1):
    List[i] = List[i-1] + L[i-1]
A = [i for i in List if i <=X]
print(len(A)) 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 List = [0]*(N+1) List [0]*(N+1) [0] 0 N+1 N 1 for i in range(1,N+1):
    List[i] = List[i-1] + L[i-1] i range(1,N+1) range 1 N+1 N 1 List[i] = List[i-1] + L[i-1] List[i] List i List[i-1] + L[i-1] List[i-1] List i-1 i 1 L[i-1] L i-1 i 1 i for i in List if i <=X for i in List if i <=X i List i <=X i X if i <=X i A = [i for i in List if i <=X] A [i for i in List if i <=X] print(len(A)) print len(A) len A N,X = map(int,input().split()) map(int,input().split()) N List = [0]*(N+1) [0]*(N+1) List L = list(map(int,input().split())) list(map(int,input().split())) L A = [i for i in List if i <=X] [i for i in List if i <=X] A X = map(int,input().split()) map(int,input().split()) X
N,X = map(int,input().split())
L = list(map(int,input().split()))
List = [0]*(N+1)
for i in range(1,N+1):
    List[i] = List[i-1] + L[i-1]
A = [i for i in List if i <=X]
print(len(A))