n,k = gets.split.map(&:to_i)
def fact(num1,num2)
  inst = 1
  (num1-1).times{|i| inst *= (num2-i)/(i+1)}
  return inst
end
red = n-k
puts red+1
exit if k == 1
for count in 1..k-1
  ans = (fact(count,k-1)*fact(count+1,red+1))%(10**9+7)
  puts ans
  exit if ans == 1
end
