#!/usr/bin/env python3

import itertools
import sys

# Constants

LOTTO_NUMBERS = 6

# Functions

def display_combinations(s, d, k):
    # TODO: Recursively display combinations

    # Base: have complete subset
    pass
    
    # Recurse: with current
    pass

    # Recurse: skip current
    pass

# Main execution

def main():
    for line, numbers in enumerate(map(str.split, sys.stdin)):
        if len(numbers) <= 1:
            break
        
        if line:
            print('')

        display_combinations([], list(map(int, numbers[1:])), 0)

if __name__ == '__main__':
    main()

#!/usr/bin/env python3

import itertools
import sys

# Constants

LOTTO_NUMBERS = 6

# Functions

def display_combinations(s, d, k):
    # TODO: Recursively display combinations

    # Base: have complete subset
    pass
    
    # Recurse: with current
    pass

    # Recurse: skip current
    pass

# Main execution

def main():
    for line, numbers in enumerate(map(str.split, sys.stdin)):
        if len(numbers) <= 1:
            break
        
        if line:
            print('')

        display_combinations([], list(map(int, numbers[1:])), 0)

if __name__ == '__main__':
    main()

#!/usr/bin/env python3 # Constants # Functions # TODO: Recursively display combinations # Base: have complete subset # Recurse: with current # Recurse: skip current # Main execution