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