N = int(input()) L = list(map(int, input().split())) def uniq(L): U = list(set(L)) for x in U: if x in L: L.remove(x) return list(set(U)-set(L)) print(len(uniq(L)))