There are n students who can be good in d domains. Determine the groups of k students that will cover all the d domains.
The input file pluricex.in contains the three integer numbers, n, k and d. Each of the following n lines contains an integer number nr that represents the number of domains which a student is good in and nr integer numbers that represent the domains.
The output file pluricex.out contains all the groups that can be formed. The members will be written in ascending order. The groups will be written in lexicographic order.
0 < n ≤ 22
0 < k ≤ 8
0 < d ≤ 10
There will always be a solution. The number of solutions is <2000