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