n = int(input())l = []for i in range(n): x = int(input()) l.append(x)s = set(l)l1 = list(s)l1.sort()for i in l1: print(i)