(defun f(n k a)(if(<= 0 k n)(if(= n 0)(format t"~{~A~} "a)(f(1- n)(f(1- n)k`(,@a 0))`(,@a 1))))(1- k))(loop(f(read)(read)/))