let id x = x
let n = Scanf.scanf "%d\n" id
let array = Array.init n (fun _ -> Scanf.scanf "%d\n" id)
let list = Array.to_list array
let h = Hashtbl.create 100000
 
let hash_check x =
  if Hashtbl.mem h x then let () = Hashtbl.remove h x in (-1)
  else let () = Hashtbl.add h x 1 in 1
 
let rec func l =
  match l with
  | [] -> 0
  | m :: rest -> (hash_check m) + (func rest)

let ans = func list     

let () =
  Printf.printf "%d\n" ans