from collections import Counter

from sys import stdin



lines = stdin.readlines

N, *A = [int(line) for line in lines()]



An = Counter(A)





def main():

    print((sum([1 for k, v in list(An.items()) if v % 2])))

    return





main()

from collections import Counter

from sys import stdin



lines = stdin.readlines



N, *A = list(map(int, lines()))

An = Counter(A)





def main():

    print((sum([1 for v in list(An.values()) if v % 2])))

    return





main()

from collections import Counter
from sys import stdin

lines = stdin.readlines
N, *A = [int(line) for line in lines()]
An = Counter(A)


def main():
    print((sum([1 for k, v in list(An.items()) if v % 2])))
    return


main()

from collections import Counter
from sys import stdin

lines = stdin.readlines
N, *A = list(map(int, lines()))
An = Counter(A)


def main():
    print((sum([1 for v in list(An.values()) if v % 2])))
    return


main()

-N, *A = [int(line) for line in lines()] +N, *A = list(map(int, lines())) -    print((sum([1 for k, v in list(An.items()) if v % 2]))) +    print((sum([1 for v in list(An.values()) if v % 2])))