n=int(input()) nums=[] for i in range(n): num=int(input()) nums.append(num) unique_nums=sorted(list(set(nums))) for num in unique_nums: print(num)