N = int(input()) A = list(map(int,input().split())) B = [] counter = 0 for i in range(N) : b = A.count(A[i]) if b == 1 and A[i] not in B : B.append(A[i]) counter += 1 print(counter)