n,x=map(int,input().split())
ans=1
p=0
l=[int(x) for x in input().split()]
for i in range(n):
    p+=l[i]
    if p > x:
        break
    else:
        ans+=1

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

print(ans)