while True: try: x1 = int(input()) list1 = [] list2 = [] for i in range(x1): list1.append(int(input())) for word in list1: if word not in list2: list2.append(word) list2.sort() for k in list2: print(k) except: break
while True: try: x1 = int(input()) list1 = [] list2 = [] for i in range(x1): list1.append(int(input())) for word in list1: if word not in list2: list2.append(word) list2.sort() for k in list2: print(k) except: break