while True: n_list = [] try:
insert_str = input()
for j in range(int(insert_str)):
next_str = input()
n_list.append(int(next_str))
n_list = list(set(n_list))
n_list.sort()
for i in n_list:
print(i)
except Exception as a:
break