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

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

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

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

cnt = 1
D = 0
for i in range(1,N+1):
    D += L[i-1]
    if D <= X:
        cnt += 1
    else:
        break
print(cnt)