n, x = map(int, input().split())
l = [int(s) for s in input().split()]

pos = 0
count = 1
for i in range(n):
    pos += l[i]
    if pos > x:
        break
    count += 1
print(count) n, x = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split x int(s) for s in input().split() for s in input().split() s input().split() ().split () input split for s in input().split() int(s) int s l = [int(s) for s in input().split()] l [int(s) for s in input().split()] pos = 0 pos 0 count = 1 count 1 for i in range(n):
    pos += l[i]
    if pos > x:
        break
    count += 1 i range(n) range n pos += l[i] pos l[i] l i if pos > x:
        break
     pos > x pos x break count += 1 count 1 print(count) print count l = [int(s) for s in input().split()] [int(s) for s in input().split()] l count = 1 1 count pos = 0 0 pos count += 1 1 count n, x = map(int, input().split()) map(int, input().split()) n pos += l[i] l[i] pos x = map(int, input().split()) map(int, input().split()) x
n, x = map(int, input().split())
l = [int(s) for s in input().split()]

pos = 0
count = 1
for i in range(n):
    pos += l[i]
    if pos > x:
        break
    count += 1
print(count)