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

ans = 1
num = 0

for i in range(l):
	num += S[i]
	if num <= X:
		ans += 1

print(ans) N, X = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split X S = list(map(int, input().split())) S list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split l = len(S) l len(S) len S ans = 1 ans 1 num = 0 num 0 for i in range(l):
	num += S[i]
	if num <= X:
		ans += 1 i range(l) range l num += S[i] num S[i] S i if num <= X:
		ans += 1 num <= X num X ans += 1 ans 1 print(ans) print ans num += S[i] S[i] num X = map(int, input().split()) map(int, input().split()) X l = len(S) len(S) l ans = 1 1 ans ans += 1 1 ans S = list(map(int, input().split())) list(map(int, input().split())) S N, X = map(int, input().split()) map(int, input().split()) N num = 0 0 num
N, X = map(int, input().split())
S = list(map(int, input().split()))
l = len(S)

ans = 1
num = 0

for i in range(l):
	num += S[i]
	if num <= X:
		ans += 1

print(ans)