n, x = map(int, input().split())
list = list(map(int, input().split()))

jump_point = [0]
tmp = 0
for point in list:
    tmp += point
    jump_point.append(tmp)

ans = 0
for i in jump_point:
    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 list = list(map(int, input().split())) list list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split jump_point = [0] jump_point [0] 0 tmp = 0 tmp 0 for point in list:
    tmp += point
    jump_point.append(tmp) point list tmp += point tmp point jump_point.append(tmp) jump_point.append jump_point append tmp ans = 0 ans 0 for i in jump_point:
    if i <= x:
        ans += 1 i jump_point if i <= x:
        ans += 1 i <= x i x ans += 1 ans 1 print(ans) print ans tmp += point point tmp list = list(map(int, input().split())) list(map(int, input().split())) list ans = 0 0 ans n, x = map(int, input().split()) map(int, input().split()) n tmp = 0 0 tmp ans += 1 1 ans jump_point = [0] [0] jump_point x = map(int, input().split()) map(int, input().split()) x
n, x = map(int, input().split())
list = list(map(int, input().split()))

jump_point = [0]
tmp = 0
for point in list:
    tmp += point
    jump_point.append(tmp)

ans = 0
for i in jump_point:
    if i <= x:
        ans += 1

print(ans)