for i in sorted([input()for _ in range(int(input()))]):print(i)