n=eval(input())
d=[]
for i in range(n):
    a=input()
    d.append(a)
for i in sorted(d):
    print(i)