NN = input().split()
N = int(NN[0])
X = int(NN[1])
LL = input().split()
list1 = [0]
for i in range(N):
  
  a = list1[i] + int(LL[i])
  list1.append(a)
count = 0
for i in list1:
  if int(i) <= X:
    count +=1
print(count) NN = input().split() NN input().split() ().split () input split N = int(NN[0]) N int(NN[0]) int NN[0] NN 0 X = int(NN[1]) X int(NN[1]) int NN[1] NN 1 LL = input().split() LL input().split() ().split () input split list1 = [0] list1 [0] 0 for i in range(N):
  
  a = list1[i] + int(LL[i])
  list1.append(a) i range(N) range N a = list1[i] + int(LL[i]) a list1[i] + int(LL[i]) list1[i] list1 i int(LL[i]) int LL[i] LL i list1.append(a) list1.append list1 append a count = 0 count 0 for i in list1:
  if int(i) <= X:
    count +=1 i list1 if int(i) <= X:
    count +=1 int(i) <= X int(i) int i X count +=1 count 1 print(count) print count NN = input().split() input().split() NN list1 = [0] [0] list1 count = 0 0 count X = int(NN[1]) int(NN[1]) X LL = input().split() input().split() LL a = list1[i] + int(LL[i]) list1[i] + int(LL[i]) a N = int(NN[0]) int(NN[0]) N count +=1 1 count
NN = input().split()
N = int(NN[0])
X = int(NN[1])
LL = input().split()
list1 = [0]
for i in range(N):
  
  a = list1[i] + int(LL[i])
  list1.append(a)
count = 0
for i in list1:
  if int(i) <= X:
    count +=1
print(count)