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

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