print(*sorted(input()for i in range(int(input()))),sep="\n")