N = int(input()) A = list(map(int, input().split())) dup = [] unq = [] for x in A: if x in dup: continue if x in unq: unq.remove(x) dup.append(x) continue unq.append(x) print(len(unq))