Skip to content
Snippets Groups Projects
15.py 183 B
Newer Older
hacker717's avatar
hacker717 committed
from itertools import permutations, chain

for a, b, c in  permutations(sorted(list(chain.from_iterable([input().split(", ") for _ in range(int(input()))]))), r=3):
    print(a, b, c)