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