n,k=gets.chomp.split(" ").map{|s| s.to_i}
b=k
r=n-k

c=[]
for i in 0..n
  c[i]=[]
  for j in 0..n
    if i<j
      c[i][j]=0
    elsif j==1
      c[i][j]=i
    elsif j==0
      c[i][j]=1
    else
      c[i][j]=c[i-1][j]+c[i-1][j-1]
    end
  end
end

w=(10**9)+7
for i in 1..b
  puts (c[r+1][i]*c[b-1][i-1])%w
end