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

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

d=0
ans=0
for i in a:
    d+=i
    if d<=x:ans+=1
print(ans+1)