import sys n = int(input()) a = [] for _ in range(n): tmp = int(input()) if tmp not in a: a.append(tmp) a.sort() for i in a: print(i)