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

D = [0]

ans = 1

for i in range(0,N):
    D.append(D[i]+L[i])
    if D[i+1] > X:
        break
    else:
        ans += 1

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

D = [0]

ans = 1

for i in range(0,N):
    D.append(D[i]+L[i])
    if D[i+1] > X:
        break
    else:
        ans += 1

print(ans)
