n, k = gets.split.map(&:to_i)

for i in 1 .. k
  if i == k
    tmp1 = 1
  else
    tmp1 = k
    [i - 1, k - i].min.times do |j|
      tmp1 *= (tmp1 - (j + 1))
    end
    for j in 1 .. i
      tmp1 /= j
    end
  end

  tmp2 = 1

  for j in 1 .. k - 1
    tmp2 *= j
  end
  for j in 1 .. k - i
    tmp2 /= j
  end
  for j in 1 .. i - 1
    tmp2 /= j
  end

  puts tmp1 * tmp2

end


