1. #Dimikoj Accept

  2. l = []
  3. for i in range(int(input())):
  4. l.append(input())

  5. l.sort()
  6. for j in l:
  7. print(j)