n = int(input()) nums = list(map(int, input().split())) li = {} count = 0 for i in nums: if not i in li: li[i] = "0" else: li[i] = int(li[i]) + 1 for value in li: if value == 1: count += 1 print(count)