import sys

from collections import defaultdict



read = sys.stdin.read

readline = sys.stdin.readline

readlines = sys.stdin.readlines

sys.setrecursionlimit(10 ** 9)

INF = 1 << 60

MOD = 1000000007





def main():

    N, *A = list(map(int, read().split()))



    d = defaultdict(bool)

    for a in A:

        if d[a]:

            d[a] = False

        else:

            d[a] = True



    ans = sum(1 for f in list(d.values()) if f)

    

    print(ans)

    return





if __name__ == '__main__':

    main()

import sys



read = sys.stdin.read

readline = sys.stdin.readline

readlines = sys.stdin.readlines

sys.setrecursionlimit(10 ** 9)

INF = 1 << 60

MOD = 1000000007





def main():

    N, *A = list(map(int, read().split()))



    d = dict()

    for a in A:

        if a in d and d[a]:

            d[a] = False

        else:

            d[a] = True



    ans = sum(1 for flag in list(d.values()) if flag)



    print(ans)

    return





if __name__ == '__main__':

    main()

import sys
from collections import defaultdict

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10**9)
INF = 1 << 60
MOD = 1000000007


def main():
    N, *A = list(map(int, read().split()))
    d = defaultdict(bool)
    for a in A:
        if d[a]:
            d[a] = False
        else:
            d[a] = True
    ans = sum(1 for f in list(d.values()) if f)
    print(ans)
    return


if __name__ == "__main__":
    main()

import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10**9)
INF = 1 << 60
MOD = 1000000007


def main():
    N, *A = list(map(int, read().split()))
    d = dict()
    for a in A:
        if a in d and d[a]:
            d[a] = False
        else:
            d[a] = True
    ans = sum(1 for flag in list(d.values()) if flag)
    print(ans)
    return


if __name__ == "__main__":
    main()

-from collections import defaultdict -    d = defaultdict(bool) +    d = dict() -        if d[a]: +        if a in d and d[a]: -    ans = sum(1 for f in list(d.values()) if f) +    ans = sum(1 for flag in list(d.values()) if flag)