a, b = map(int, input().split())
L = list(map(int, input().split()))
x = [0]
y = 0
z = 0
for i in range(a):
  y = y + L[i]
  x.append(y)
for j in range(len(x)):
  if x[j] <= b:
    z = z+1
print(z) a, b = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b L = list(map(int, input().split())) L list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split x = [0] x [0] 0 y = 0 y 0 z = 0 z 0 for i in range(a):
  y = y + L[i]
  x.append(y) i range(a) range a y = y + L[i] y y + L[i] y L[i] L i x.append(y) x.append x append y for j in range(len(x)):
  if x[j] <= b:
    z = z+1 j range(len(x)) range len(x) len x if x[j] <= b:
    z = z+1 x[j] <= b x[j] x j b z = z+1 z z+1 z 1 print(z) print z b = map(int, input().split()) map(int, input().split()) b x = [0] [0] x z = 0 0 z z = z+1 z+1 z L = list(map(int, input().split())) list(map(int, input().split())) L a, b = map(int, input().split()) map(int, input().split()) a y = 0 0 y y = y + L[i] y + L[i] y
a, b = map(int, input().split())
L = list(map(int, input().split()))
x = [0]
y = 0
z = 0
for i in range(a):
  y = y + L[i]
  x.append(y)
for j in range(len(x)):
  if x[j] <= b:
    z = z+1
print(z)