s = int(input())
n = []
for i in range(int(s)):
    if i <= int(s):
        n.append(input())
m = '\n'.join(sorted(n))
print(m)