Skip to content
Snippets Groups Projects
5.py 163 B
Newer Older
hacker717's avatar
hacker717 committed
from itertools import chain

for index, value in enumerate(sorted(chain.from_iterable([input().split(", ") for _ in range(3)])), 1):
    print(f"{index}. {value}")