r=input().split()
N=int(r[0])
X=int(r[1])
d=[int(s) for s in input().split()]
ans=1
le=0
for i in range(N):
    le+=d[i]
    if le>X:
        print(ans)
        break
    elif i==N-1:
        print(N+1)
    else:
        ans+=1 r=input().split() r input().split() ().split () input split N=int(r[0]) N int(r[0]) int r[0] r 0 X=int(r[1]) X int(r[1]) int r[1] r 1 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 d=[int(s) for s in input().split()] d [int(s) for s in input().split()] ans=1 ans 1 le=0 le 0 for i in range(N):
    le+=d[i]
    if le>X:
        print(ans)
        break
    elif i==N-1:
        print(N+1)
    else:
        ans+=1 i range(N) range N le+=d[i] le d[i] d i if le>X:
        print(ans)
        break
    elif i==N-1:
        print(N+1)
    else:
        ans+=1 le>X le X print(ans) print ans break elif i==N-1:
        print(N+1)
     i==N-1 i N-1 N 1 print(N+1) print N+1 N 1 ans+=1 ans 1 le+=d[i] d[i] le le=0 0 le ans+=1 1 ans d=[int(s) for s in input().split()] [int(s) for s in input().split()] d N=int(r[0]) int(r[0]) N r=input().split() input().split() r X=int(r[1]) int(r[1]) X ans=1 1 ans
r=input().split()
N=int(r[0])
X=int(r[1])
d=[int(s) for s in input().split()]
ans=1
le=0
for i in range(N):
    le+=d[i]
    if le>X:
        print(ans)
        break
    elif i==N-1:
        print(N+1)
    else:
        ans+=1