#用集合set去重
#转列表排序,输出
import sys
while True:
    try:
        n = int(input())
        s = set()
        for i in range(n):
            s.add(int(input()))
        l = sorted(list(s))
        for c in l:
            print(c)
    except:
#         print(sys.exc_info())
        break