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