a=int(input()) b=input().split() c-[] for i in range(a,0): if b not in c: c.append(b) else: del b[i]