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