while True:
    try:
        n = int(input())
        m = []
        for i in range(n): #接收输入
            b = int(input())
            m.append(b)
        p = set(m) #取不重复的
        q = sorted(p) #小到大排序
        for i in q: #依次输出
            print(i)
    except:
        break