n, k = gets.chomp.split(' ')

b = k
r = n - k
coll = k
a = collection(a, i)
b = collection(r + i, r)
k.times do
  print a * b / 1000000007
end

def fact(n)
  (1..n).to_a.inject(1) { |f, i| f * i }
end

def collection(a, b)
  fact(a) / fact(a - b) / fact(b)
end
