n=int(input())
l=[]
for i in range(n):
    num=int(input())
    if num not in l:
        l.append(num)
l.sort()
for i in l:
    print(i)