y = [int(z) for z in input().split()]
l = [int(z) for z in input().split()]
d = [0]*(y[0]+1)
c = 1
for i in range(1,y[0]+1):
      d[i] = d[i-1]+l[i-1]
      if (d[i]<=y[1]):
            c+=1
print(c) int(z) for z in input().split() for z in input().split() z input().split() ().split () input split for z in input().split() int(z) int z y = [int(z) for z in input().split()] y [int(z) for z in input().split()] int(z) for z in input().split() for z in input().split() z input().split() ().split () input split for z in input().split() int(z) int z l = [int(z) for z in input().split()] l [int(z) for z in input().split()] d = [0]*(y[0]+1) d [0]*(y[0]+1) [0] 0 y[0]+1 y[0] y 0 1 c = 1 c 1 for i in range(1,y[0]+1):
      d[i] = d[i-1]+l[i-1]
      if (d[i]<=y[1]):
            c+=1 i range(1,y[0]+1) range 1 y[0]+1 y[0] y 0 1 d[i] = d[i-1]+l[i-1] d[i] d i d[i-1]+l[i-1] d[i-1] d i-1 i 1 l[i-1] l i-1 i 1 if (d[i]<=y[1]):
            c+=1 d[i]<=y[1] d[i] d i y[1] y 1 c+=1 c 1 print(c) print c c+=1 1 c l = [int(z) for z in input().split()] [int(z) for z in input().split()] l c = 1 1 c y = [int(z) for z in input().split()] [int(z) for z in input().split()] y d = [0]*(y[0]+1) [0]*(y[0]+1) d
y = [int(z) for z in input().split()]
l = [int(z) for z in input().split()]
d = [0]*(y[0]+1)
c = 1
for i in range(1,y[0]+1):
      d[i] = d[i-1]+l[i-1]
      if (d[i]<=y[1]):
            c+=1
print(c)
