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