N,K=gets.split.map(&:to_i) 99.times{|i|p ~-N%-~K+i*-~K}