N, X = map(int,input().split())
L = list(map(int,input().split()))
D = 0
cnt = 1

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

for i in range(N):
    D = D + L[i]
    if D > X:
        break
    cnt += 1

print(cnt)
