Files
CodeObject/zeta/py/completed/1181.py
2025-05-07 04:44:30 +09:00

7 lines
125 B
Python

N = int(input())
S = [input() for i in range(N)]
S = list(set(S))
S.sort(key=lambda v: (len(v), v))
for s in S:
print(s)