N = int(raw_input()) A = map(int,raw_input().split()) B = [] c = 0 for i in range(N): if A[i] in B:continue if A.count(A[i]) == 1: c += 1 else: B.append(A[i]) print c