Skip to content
Snippets Groups Projects
14.py 144 B
Newer Older
hacker717's avatar
hacker717 committed
from itertools import permutations

for names in  permutations(sorted([input() for _ in range(int(input()))]), r=3):
    print(", ".join(names))