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