n,k = gets.split.map(&:to_i)
mod = 10**9+7

dp = Array.new(n).map{Array.new(k,1)}

n.times { |s| dp[s][0] = s+1 }

n.times do |s|
  k.times do |t|
    if s>0 && t>0 && s>t
      dp[s][t] = dp[s-1][t] + dp[s-1][t-1]
    end
  end
end

k.times do |i|
  if i == 0
    puts (dp[n-k][i]) % mod
  else
  	puts (dp[n-k][i]*dp[k-2][i-1]) % mod
  end
end
