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

current = 0
cnt = 1
for l in L:
    current += l
    if current > X:
        break
    cnt += 1

print(cnt) N, X = map(int, input().split()) N 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 current = 0 current 0 cnt = 1 cnt 1 for l in L:
    current += l
    if current > X:
        break
    cnt += 1 l L current += l current l if current > X:
        break
     current > X current X break cnt += 1 cnt 1 print(cnt) print cnt N, X = map(int, input().split()) map(int, input().split()) N X = map(int, input().split()) map(int, input().split()) X cnt += 1 1 cnt current = 0 0 current cnt = 1 1 cnt current += l l current L = list(map(int, input().split())) list(map(int, input().split())) L
N, X = map(int, input().split())
L = list(map(int, input().split()))

current = 0
cnt = 1
for l in L:
    current += l
    if current > X:
        break
    cnt += 1

print(cnt)
