n, x = map(int, input().split())
L = list(map(int, input().split()))

ans = 1
D_i = 0
for l in L:
  D_i += l
  if D_i <= x:
    ans += 1

print(ans) 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 ans = 1 ans 1 D_i = 0 D_i 0 for l in L:
  D_i += l
  if D_i <= x:
    ans += 1 l L D_i += l D_i l if D_i <= x:
    ans += 1 D_i <= x D_i x ans += 1 ans 1 print(ans) print ans n, x = map(int, input().split()) map(int, input().split()) n ans += 1 1 ans D_i = 0 0 D_i ans = 1 1 ans L = list(map(int, input().split())) list(map(int, input().split())) L D_i += l l D_i x = map(int, input().split()) map(int, input().split()) x
n, x = map(int, input().split())
L = list(map(int, input().split()))

ans = 1
D_i = 0
for l in L:
  D_i += l
  if D_i <= x:
    ans += 1

print(ans)
