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