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