number = int(input()) output = [] for i in range(number): random = int(input()) if random not in output: output.append(random) output.sort() for i in output: print(i)