while True: try: n=int(input()) l=[] for i in range(n): l.append(int(input())) uniq=set(l) for j in sorted(uniq): print(j) except: break