local read = io.read

local n = read("n")

local count = 0
local paper_t = {}
for i = 1, n do
	local a_i = read("n")
	if paper_t[a_i] then
		count = count - 1
		paper_t[a_i] = nil
	else
		count = count + 1
		paper_t[a_i] = true
	end
end

print(count)
