input = gets.chomp.split(" ").map(&:to_i)

N = input[0]
K = input[1]
(1..K).each do |i|
  combinations = 1
  (1..i).each do |e|
    combinations = combinations*(N-K+2-e)/e
  end
  (1..(i-1)).each do |e|
    combinations = combinations*(K-e)/e
  end
  answer = combinations% (10**9+7)
  puts answer
end
