input() A = list(map(int, input().split())) newlist = [] twolist = [] for a in A: if not a in newlist and not a in twolist: newlist.append(a) continue if a in newlist: newlist.remove(a) twolist.append(a) continue print(len(newlist))