from easyinput import read_line

print("=== Jutge tests start here ===")

x = read_line()
while x is not None:
    x = [int(n) for n in x.split()]
    print('lst:',x[1:]," k=",x[0], " result=",spot_them(x[1:],x[0]))
    x = read_line()
    
    
# add some constant tests in case they consumed all input
print("\n=== Additional public tests by Jutge ===")

x=[4,5,6,77]
k=3
print('lst:',x," k=",k, " result=",spot_them(x,k))
x=[0,-49,88,77,66,99,909,1]
k=9
print('lst:',x," k=",k, " result=",spot_them(x,k))
x=[0,-49,88,77,66,99,909,1]
k=2
print('lst:',x," k=",k, " result=",spot_them(x,k))

