Skip to content
Snippets Groups Projects
6603_mingi.py 264 B
Newer Older
Mingi Jung's avatar
Mingi Jung committed
from itertools import combinations
import sys
input = sys.stdin.readline
    
while True:
    arr = [*map(int, input().split())]
    if arr[0] == 0:
        break

    del[arr[0]]

    for i in combinations(arr, 6):
        print(' '.join(map(str, i)))
    print()