func main() var n: int :: cui@input().toInt(&) var dic: dict :: #dict var ans: int :: 0 for i(0, n - 1) var Ai: int :: cui@inputInt() var cnt: int :: 1 if(dic.exist(Ai)) do cnt :: dic.get(Ai, &) + 1 end if if(cnt = 1) do ans :+ 1 elif(cnt = 2) do ans :- 1 end if do dic.add(Ai, cnt) end for do cui@print("\{ans}\n") end func