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