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