import Data.IntMap( insertWith, empty, toList, IntMap)
import qualified Data.IntMap as IM
import Data.List( foldl')
import qualified Data.List as L
import Control.Monad( replicateM)

main = do
    n_ <- readLn::IO Int
    as_ <- replicateM n_ (readLn::IO Int)
    let
	intCounts::[Int] -> IntMap Int
	intCounts = L.foldl' (\m k->IM.insertWith (+) k 1 m) IM.empty

    print . IM.size . IM.filter odd $ intCounts as_