N,X = map(int,input().split())
L = [int(i) for i in input().split()]
D = 0
for i in range(N) :
    D = L[i]+D
 #   print(i,D)
    if D>X :
        print(i+1)
        exit()

print(N+1) N,X = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split X int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i L = [int(i) for i in input().split()] L [int(i) for i in input().split()] D = 0 D 0 for i in range(N) :
    D = L[i]+D
 #   print(i,D)
    if D>X :
        print(i+1)
        exit() i range(N) range N D = L[i]+D D L[i]+D L[i] L i D if D>X :
        print(i+1)
        exit() D>X D X print(i+1) print i+1 i 1 exit() exit print(N+1) print N+1 N 1 N,X = map(int,input().split()) map(int,input().split()) N D = L[i]+D L[i]+D D D = 0 0 D L = [int(i) for i in input().split()] [int(i) for i in input().split()] L X = map(int,input().split()) map(int,input().split()) X
N,X = map(int,input().split())
L = [int(i) for i in input().split()]
D = 0
for i in range(N) :
    D = L[i]+D
 #   print(i,D)
    if D>X :
        print(i+1)
        exit()

print(N+1)