N,K=gets.split.map &:to_i 9999.times{|i|p~-N%-~K-~K*i;STDOUT.flush}