import sequtils, strutils, tables let n, a = stdin.readLine.split.map parseInt cntT = a.toCountTable var cnt = 0 for v in cntT.values: if v == 1: inc cnt echo cnt