#2022/6/1 21:14
n=int(input()) #5
n1=list(map(int,input().split()))#10 12 93 12 75
#思路一:set集合去重,但是集合无序,所以运行结果报错
# print(' '.join(str(i) for i in set(n1)))#10 75 12 93
#思路二:集合转换为列表
n2=list(set(n1))
n2.sort(key=n1.index)
print(' '.join(str(i) for i in n2))#10 12 93 75