import Control.Monad
import Control.Applicative
import Data.List as List
import Data.Set as Set

maxNum :: Int
maxNum = 100000

process :: (Set Int) -> Int -> (Set Int)
process s n
    | member n s == True = Set.delete n s
    | otherwise = Set.insert n s


main :: IO()
main = do
    n <- readLn :: IO Int
    nums <- replicateM n readLn :: IO [Int]
    let s = List.foldl process Set.empty nums
    print (Set.size s)