module IntSet = Set.Make (struct
  type t = int
  let compare = compare
end)

let () =
  let n = Scanf.scanf "%d\n" (fun n -> n) in
  let as_ = Array.init n (fun _ -> Scanf.scanf "%d\n" (fun a -> a)) in
  Array.fold_left (fun s a ->
    if IntSet.mem a s then IntSet.remove a s
    else IntSet.add a s) IntSet.empty as_
  |> IntSet.cardinal
  |> Printf.printf "%d\n"