while True:
    try:
        n = int(input())
        L = []
        for i in range(n):
            nn = int(input())
            if nn not in L:
                L.append(nn)
        L.sort()
        for x in L:
            print(x)

    except:
        break