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

coordinate = 0
count = 0

while count < N:
    coordinate += L[count]
    if coordinate > X:
        break
    else:
        count += 1

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

coordinate = 0
count = 0

while count < N:
    coordinate += L[count]
    if coordinate > X:
        break
    else:
        count += 1

print(count+1)
