N,X = [int(IN) for IN in input().split()]
L = [int(l) for l in input().split() ]

D = 0
for i in range(len(L)) :
  D += L[i]
  if D > X:
    print(i+1)
    exit()

print(len(L)+1) int(IN) for IN in input().split() for IN in input().split() IN input().split() ().split () input split for IN in input().split() int(IN) int IN N,X = [int(IN) for IN in input().split()] N [int(IN) for IN in input().split()] X int(l) for l in input().split() for l in input().split() l input().split() ().split () input split for l in input().split() int(l) int l L = [int(l) for l in input().split() ] L [int(l) for l in input().split() ] D = 0 D 0 for i in range(len(L)) :
  D += L[i]
  if D > X:
    print(i+1)
    exit() i range(len(L)) range len(L) len L D += L[i] D L[i] L i if D > X:
    print(i+1)
    exit() D > X D X print(i+1) print i+1 i 1 exit() exit print(len(L)+1) print len(L)+1 len(L) len L 1 N,X = [int(IN) for IN in input().split()] [int(IN) for IN in input().split()] N D = 0 0 D X = [int(IN) for IN in input().split()] [int(IN) for IN in input().split()] X L = [int(l) for l in input().split() ] [int(l) for l in input().split() ] L D += L[i] L[i] D
N,X = [int(IN) for IN in input().split()]
L = [int(l) for l in input().split() ]

D = 0
for i in range(len(L)) :
  D += L[i]
  if D > X:
    print(i+1)
    exit()

print(len(L)+1)