# -*- coding: utf-8 -*-

n, x = map(int, input().split())
ll = list(map(int, input().split()))

d = 0
ans = 1

for l in ll:
    d += l

    if d > x:
        break


    ans += 1

print(ans) n, x = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split x ll = list(map(int, input().split())) ll list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split d = 0 d 0 ans = 1 ans 1 for l in ll:
    d += l

    if d > x:
        break


    ans += 1 l ll d += l d l if d > x:
        break


     d > x d x break ans += 1 ans 1 print(ans) print ans n, x = map(int, input().split()) map(int, input().split()) n ans = 1 1 ans ll = list(map(int, input().split())) list(map(int, input().split())) ll d = 0 0 d d += l l d ans += 1 1 ans x = map(int, input().split()) map(int, input().split()) x
# -*- coding: utf-8 -*-

n, x = map(int, input().split())
ll = list(map(int, input().split()))

d = 0
ans = 1

for l in ll:
    d += l

    if d > x:
        break


    ans += 1

print(ans)
