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

d = 0
count = 1

for i in range(N):
    d = d + l[i]
    if d <= X:
        count += 1

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

d = 0
count = 1

for i in range(N):
    d = d + l[i]
    if d <= X:
        count += 1

print(count)