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

jump = [0]
num = 0
for i in range(N):
    num += L[i]
    jump.append(num)

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

jump = [0]
num = 0
for i in range(N):
    num += L[i]
    jump.append(num)

ans = 0
for i in jump:
    if i <= X:
        ans += 1
print(ans)
