input() A={} for x in input().split():A[x]=(1,0)[x in A] print(sum(A.values()))