n = int(eval(input()))

a = [int(eval(input())) for _ in range(n)]





a_set = set()

for ai in a:

    if ai in a_set:

        a_set.remove(ai)

    else:

        a_set.add(ai)

        

print((len(a_set)))
import sys

stdin = sys.stdin



def li(): return list(map(int, stdin.readline().split()))

def li_(): return [int(x)-1 for x in stdin.readline().split()]

def lf(): return list(map(float, stdin.readline().split()))

def ls(): return stdin.readline().split()

def ns(): return stdin.readline().rstrip()

def lc(): return list(ns())

def ni(): return int(stdin.readline())

def nf(): return float(stdin.readline())



from collections import Counter



n = ni()

a = [ni() for _ in range(n)]



cnt = Counter(a)



ans = 0

for ci in list(cnt.values()):

    if ci % 2 == 1:

        ans += 1

        

print(ans)
n = int(eval(input()))
a = [int(eval(input())) for _ in range(n)]
a_set = set()
for ai in a:
    if ai in a_set:
        a_set.remove(ai)
    else:
        a_set.add(ai)
print((len(a_set)))

import sys

stdin = sys.stdin


def li():
    return list(map(int, stdin.readline().split()))


def li_():
    return [int(x) - 1 for x in stdin.readline().split()]


def lf():
    return list(map(float, stdin.readline().split()))


def ls():
    return stdin.readline().split()


def ns():
    return stdin.readline().rstrip()


def lc():
    return list(ns())


def ni():
    return int(stdin.readline())


def nf():
    return float(stdin.readline())


from collections import Counter

n = ni()
a = [ni() for _ in range(n)]
cnt = Counter(a)
ans = 0
for ci in list(cnt.values()):
    if ci % 2 == 1:
        ans += 1
print(ans)

-n = int(eval(input())) -a = [int(eval(input())) for _ in range(n)] -a_set = set() -for ai in a: -    if ai in a_set: -        a_set.remove(ai) -    else: -        a_set.add(ai) -print((len(a_set))) +import sys + +stdin = sys.stdin + + +def li(): +    return list(map(int, stdin.readline().split())) + + +def li_(): +    return [int(x) - 1 for x in stdin.readline().split()] + + +def lf(): +    return list(map(float, stdin.readline().split())) + + +def ls(): +    return stdin.readline().split() + + +def ns(): +    return stdin.readline().rstrip() + + +def lc(): +    return list(ns()) + + +def ni(): +    return int(stdin.readline()) + + +def nf(): +    return float(stdin.readline()) + + +from collections import Counter + +n = ni() +a = [ni() for _ in range(n)] +cnt = Counter(a) +ans = 0 +for ci in list(cnt.values()): +    if ci % 2 == 1: +        ans += 1 +print(ans)