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