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