a=input() n=list(map(int,input().split(' '))) m=[] for i in n: if i not in m: print(i,end=' ') m.append(i)