N, X = map(int, input().split())
*L, = map(int, input().split())
ans = 1
d = 0
for l in L:
    if d + l <= X:
        ans += 1
        d += l
    else:
        break
print(ans) N, X = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split X *L, = map(int, input().split()) *L L map(int, input().split()) map int input().split() ().split () input split ans = 1 ans 1 d = 0 d 0 for l in L:
    if d + l <= X:
        ans += 1
        d += l
    else:
        break l L if d + l <= X:
        ans += 1
        d += l
    else:
        break d + l <= X d + l d l X ans += 1 ans 1 d += l d l break print(ans) print ans X = map(int, input().split()) map(int, input().split()) X d = 0 0 d ans += 1 1 ans N, X = map(int, input().split()) map(int, input().split()) N ans = 1 1 ans d += l l d
N, X = map(int, input().split())
*L, = map(int, input().split())
ans = 1
d = 0
for l in L:
    if d + l <= X:
        ans += 1
        d += l
    else:
        break
print(ans)
