import strutils, sequtils, tables var dic = initCountTable[int]() cnt = 0 let N, A = stdin.readLine.split.map parseInt for a in A: dic.inc(a) for k, v in dic: (if v == 1: cnt += 1) echo cnt