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