N,X = map(int,input().split())
L_List = list(map(int,input().split()))
ans = 0
ct = 1
for i in range(N):
    ans += L_List[i]
    if ans <= X:
        ct += 1
    else:
        break
        
print(ct) N,X = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split X L_List = list(map(int,input().split())) L_List list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split ans = 0 ans 0 ct = 1 ct 1 for i in range(N):
    ans += L_List[i]
    if ans <= X:
        ct += 1
    else:
        break
         i range(N) range N ans += L_List[i] ans L_List[i] L_List i if ans <= X:
        ct += 1
    else:
        break
         ans <= X ans X ct += 1 ct 1 break print(ct) print ct ans += L_List[i] L_List[i] ans ct += 1 1 ct X = map(int,input().split()) map(int,input().split()) X ans = 0 0 ans ct = 1 1 ct L_List = list(map(int,input().split())) list(map(int,input().split())) L_List N,X = map(int,input().split()) map(int,input().split()) N
N,X = map(int,input().split())
L_List = list(map(int,input().split()))
ans = 0
ct = 1
for i in range(N):
    ans += L_List[i]
    if ans <= X:
        ct += 1
    else:
        break
        
print(ct)