eval"N,K="+gets.split*?, p [K+1,N>>1-N%2].min