n,x = map(int, input().split())
L = list(map(int, input().split()))
cnt = 1
d = 0
for l in L:
  d += l
  if d <= x:
    cnt += 1
  else:
    break
print(cnt) n,x = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split x L = list(map(int, input().split())) L list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split cnt = 1 cnt 1 d = 0 d 0 for l in L:
  d += l
  if d <= x:
    cnt += 1
  else:
    break l L d += l d l if d <= x:
    cnt += 1
  else:
    break d <= x d x cnt += 1 cnt 1 break print(cnt) print cnt x = map(int, input().split()) map(int, input().split()) x d += l l d cnt = 1 1 cnt cnt += 1 1 cnt d = 0 0 d n,x = map(int, input().split()) map(int, input().split()) n L = list(map(int, input().split())) list(map(int, input().split())) L
n,x = map(int, input().split())
L = list(map(int, input().split()))
cnt = 1
d = 0
for l in L:
  d += l
  if d <= x:
    cnt += 1
  else:
    break
print(cnt)