class Integer
  def combination(k)
    return 1 if k.zero?

    (self - k + 1..self).inject(:*) / k.factorial
  end

  def permutation(k)
    return 1 if k.zero?

    (self - k + 1..self).inject(:*)
  end

  def factorial
    return 1 if self.zero?

    (1..self).inject(:*)
  end
end

def divide_balls_with_part(ball, part_count)
  (1..ball+1).to_a.combination(part_count-1).count
end

div =  (10e8+7).to_i

N,K = readline.strip.split.map(&:to_i)


(1..K).to_a.each do |i|

  p ((N-K+1).combination(i)%div * (K-1).combination(i-1)%div)%div

end


