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