n= int(input()) l=[] for i in range(n): a = int(input()) l.append(a) l2=[] for j in l: if j not in l2: l2.append(j) l2.sort() for k in l2: print(k)