import strutils, sequtils, algorithm var n = readLine(stdin).parseInt a:seq[string] = readLine(stdin).split a_de = deduplicate(a) echo len(a_de.filter(proc(x:string):bool = count(a, x) == 1))