N, X = [int(i) for i in input().split()]
LS = [int(i) for i in input().split()]

s = 0
cnt = 1

for l in LS:
  s += l
  if s <= X:
    cnt += 1
  else:
    break

print(cnt) int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i N, X = [int(i) for i in input().split()] N [int(i) for i in input().split()] X int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i LS = [int(i) for i in input().split()] LS [int(i) for i in input().split()] s = 0 s 0 cnt = 1 cnt 1 for l in LS:
  s += l
  if s <= X:
    cnt += 1
  else:
    break l LS s += l s l if s <= X:
    cnt += 1
  else:
    break s <= X s X cnt += 1 cnt 1 break print(cnt) print cnt LS = [int(i) for i in input().split()] [int(i) for i in input().split()] LS cnt += 1 1 cnt X = [int(i) for i in input().split()] [int(i) for i in input().split()] X s += l l s N, X = [int(i) for i in input().split()] [int(i) for i in input().split()] N s = 0 0 s cnt = 1 1 cnt
N, X = [int(i) for i in input().split()]
LS = [int(i) for i in input().split()]

s = 0
cnt = 1

for l in LS:
  s += l
  if s <= X:
    cnt += 1
  else:
    break

print(cnt)
