N, X = map(int, input().split())
L = list(map(int, input().split()))

curr_bounce = 0
cnt = 1
for i in range(N):
    curr_bounce += L[i]
    if curr_bounce > X:
        break
    else:
        cnt += 1
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 curr_bounce = 0 curr_bounce 0 cnt = 1 cnt 1 for i in range(N):
    curr_bounce += L[i]
    if curr_bounce > X:
        break
    else:
        cnt += 1 i range(N) range N curr_bounce += L[i] curr_bounce L[i] L i if curr_bounce > X:
        break
    else:
        cnt += 1 curr_bounce > X curr_bounce X break cnt += 1 cnt 1 print(cnt) print cnt curr_bounce += L[i] L[i] curr_bounce N, X = map(int, input().split()) map(int, input().split()) N L = list(map(int, input().split())) list(map(int, input().split())) L X = map(int, input().split()) map(int, input().split()) X cnt = 1 1 cnt curr_bounce = 0 0 curr_bounce cnt += 1 1 cnt
N, X = map(int, input().split())
L = list(map(int, input().split()))

curr_bounce = 0
cnt = 1
for i in range(N):
    curr_bounce += L[i]
    if curr_bounce > X:
        break
    else:
        cnt += 1
print(cnt)