#P451. 【例82.3】 公平抽签

【例82.3】 公平抽签

Description

In Xiaoming's school, there are only mm spots available for the city competition, but nn people have registered.
The teacher is troubled and doesn't know who to select, so he's looking for an absolutely fair way to decide.
He plans to have everyone draw lots, where mm lots mean "go" and the rest mean "don't go".
Xiaoming really wants to know how many different possible outcomes there are from the drawing. Please design a program to help Xiaoming!

Input Format

The first line contains two integers nn,mm, as described in the problem.
The next nn lines each contain a string SS, representing a person's name. 1mn151≤m≤n≤15.

Output Format

Output several lines, each containing mm strings representing the names of the selected people.
Within each solution, output the names in the order they were read in. The order of different solutions can be arbitrary.

Sample

3 2
xiaowang
xiaoA
xiaoli
xiaowang xiaoA
xiaowang xiaoli
xiaoA xiaoli