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