n, x = list(map(int, input().split()))
l = list(map(int, input().split()))
cnt = 1
x_idx = 0
for i in range(n):
    if (x_idx + l[i]) > x:
        break
    x_idx = x_idx + l[i]
    cnt += 1
print(cnt) n, x = list(map(int, input().split())) n list(map(int, input().split())) list 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 cnt = 1 cnt 1 x_idx = 0 x_idx 0 for i in range(n):
    if (x_idx + l[i]) > x:
        break
    x_idx = x_idx + l[i]
    cnt += 1 i range(n) range n if (x_idx + l[i]) > x:
        break
     (x_idx + l[i]) > x x_idx + l[i] x_idx l[i] l i x break x_idx = x_idx + l[i] x_idx x_idx + l[i] x_idx l[i] l i cnt += 1 cnt 1 print(cnt) print cnt x = list(map(int, input().split())) list(map(int, input().split())) x cnt = 1 1 cnt x_idx = 0 0 x_idx cnt += 1 1 cnt x_idx = x_idx + l[i] x_idx + l[i] x_idx n, x = list(map(int, input().split())) list(map(int, input().split())) n l = list(map(int, input().split())) list(map(int, input().split())) l
n, x = list(map(int, input().split()))
l = list(map(int, input().split()))
cnt = 1
x_idx = 0
for i in range(n):
    if (x_idx + l[i]) > x:
        break
    x_idx = x_idx + l[i]
    cnt += 1
print(cnt)