```while True:
    try:
        num = int(input())
        lst = [input() for i in range(num)]
        lst = map(int, set(lst))
        print('\n'.join([str(x) for x in sorted(lst)]))
    except:
        break