n,x = map(int, raw_input().split(' '))
ais = map(int, raw_input().split(' '))
count,cur,i = 0,0, 0
res = [cur]
while(i < len(ais)):
	cur += ais[i]
	res.append(cur)
	i +=1

print len([e for e in res if e <= x]) n,x = map(int, raw_input().split(' ')) n map(int, raw_input().split(' ')) map int raw_input().split(' ') ().split () raw_input split ' ' x ais = map(int, raw_input().split(' ')) ais map(int, raw_input().split(' ')) map int raw_input().split(' ') ().split () raw_input split ' ' count,cur,i = 0,0, 0 count 0 cur 0 i 0 res = [cur] res [cur] cur while(i < len(ais)):
	cur += ais[i]
	res.append(cur)
	i +=1 i < len(ais) i len(ais) len ais cur += ais[i] cur ais[i] ais i res.append(cur) res.append res append cur i +=1 i 1 print e for e in res if e <= x for e in res if e <= x e res e <= x e x if e <= x e len([e for e in res if e <= x]) len [e for e in res if e <= x] ais = map(int, raw_input().split(' ')) map(int, raw_input().split(' ')) ais cur += ais[i] ais[i] cur cur,i = 0,0, 0 0 cur n,x = map(int, raw_input().split(' ')) map(int, raw_input().split(' ')) n i +=1 1 i x = map(int, raw_input().split(' ')) map(int, raw_input().split(' ')) x res = [cur] [cur] res i = 0,0, 0 0 i count,cur,i = 0,0, 0 0 count
n,x = map(int, raw_input().split(' '))
ais = map(int, raw_input().split(' '))
count,cur,i = 0,0, 0
res = [cur]
while(i < len(ais)):
	cur += ais[i]
	res.append(cur)
	i +=1

print len([e for e in res if e <= x])