import strutils, sequtils var n = readLine(stdin).parseInt a = readLine(stdin).split.map(parseInt) res = 0 for i in a: if a.count(i) == 1: res += 1 echo res