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

dis = 0
cnt = 1

for L in map(int, input().split()):
    dis += L
    cnt += dis <= X

print(cnt) N,X = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split X dis = 0 dis 0 cnt = 1 cnt 1 for L in map(int, input().split()):
    dis += L
    cnt += dis <= X L map(int, input().split()) map int input().split() ().split () input split dis += L dis L cnt += dis <= X cnt dis <= X dis X print(cnt) print cnt dis += L L dis cnt = 1 1 cnt dis = 0 0 dis X = map(int, input().split()) map(int, input().split()) X cnt += dis <= X dis <= X cnt N,X = map(int, input().split()) map(int, input().split()) N
N,X = map(int, input().split())

dis = 0
cnt = 1

for L in map(int, input().split()):
    dis += L
    cnt += dis <= X

print(cnt)