문제: https://www.acmicpc.net/problem/10989
import sys
read = lambda : sys.stdin.readline().strip()
write = lambda x: sys.stdout.write(str(x)+ "\n")
m=10001
a=[0]*m
for _ in range(int(read())):
a[int(read())]+=1
for j in range(10001):
for _ in range(a[j]):
write(j)