N = int(input()) A = list(map(int, input().split())) d = {} for i in A: if not i in d: d[i] = 1 else: d[i] = 0 print(sum(d.values()))