n = io.read("*n") t = {} for i = 1, n, 1 do a = io.read("*n") if(t[a] == nil) then t[a] = true elseif(t[a] == true) then t[a] = false end end c = 0 for k, v in pairs(t) do if(v == true) then c = c + 1 end end io.write(c)