s = set() N = int(input()) for i in range(N): num = int(input()) s.add(num) for num in sorted(s): print(num)