N = int(input()) listA = [int(i) for i in input().split()] listA.sort() count = 0 for i in range(len(listA)): temp = list(listA) temp.pop(i) if not listA[i] in temp: count += 1 print(count)