n, x = map(int, input().split())
Ls = list(map(int, input().split()))
ans = 1
target = 0
for l in Ls:
  target += l
  if target <= x:
    ans += 1
  else:
    print(ans)
    exit()
print(ans) n, x = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split x Ls = list(map(int, input().split())) Ls list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split ans = 1 ans 1 target = 0 target 0 for l in Ls:
  target += l
  if target <= x:
    ans += 1
  else:
    print(ans)
    exit() l Ls target += l target l if target <= x:
    ans += 1
  else:
    print(ans)
    exit() target <= x target x ans += 1 ans 1 print(ans) print ans exit() exit print(ans) print ans n, x = map(int, input().split()) map(int, input().split()) n Ls = list(map(int, input().split())) list(map(int, input().split())) Ls ans += 1 1 ans ans = 1 1 ans target = 0 0 target target += l l target x = map(int, input().split()) map(int, input().split()) x
n, x = map(int, input().split())
Ls = list(map(int, input().split()))
ans = 1
target = 0
for l in Ls:
  target += l
  if target <= x:
    ans += 1
  else:
    print(ans)
    exit()
print(ans)