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