import sys n = int(input()) array = [0] * 10001 for _ in range(n): x = int(sys.stdin.readline()) array[x] += 1 for i in range(10001): if array[i] != 0: for _ in range(array[i]): print(i)