n,x = map(int, input().split())
l = list(map(int, input().split()))
cnt = 1
d = 0
for i in l:
    d += i
    if d <= x:
        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 cnt = 1 cnt 1 d = 0 d 0 for i in l:
    d += i
    if d <= x:
        cnt += 1 i l d += i d i if d <= x:
        cnt += 1 d <= x d x cnt += 1 cnt 1 print(cnt) print cnt l = list(map(int, input().split())) list(map(int, input().split())) l cnt = 1 1 cnt n,x = map(int, input().split()) map(int, input().split()) n d = 0 0 d cnt += 1 1 cnt x = map(int, input().split()) map(int, input().split()) x d += i i d
n,x = map(int, input().split())
l = list(map(int, input().split()))
cnt = 1
d = 0
for i in l:
    d += i
    if d <= x:
        cnt += 1
print(cnt)