import sys while True: try: n = int(input()) res = set() for i in range(n): res.add(int(input())) for i in sorted(res): print(i) except: break