import collections

n = int(eval(input()))



r = []

for i in range(n):

  r.append(int(eval(input())))



c = collections.Counter(r)

count = 0

for key, v in list(c.items()):

  if v % 2 != 0:

    count += 1

print(count)
def main():

  n = int(eval(input()))

  ans = {}

  for i in range(n):

    num = int(eval(input()))

    if num in ans:

      del ans[num]

    else:

      ans[num] = True

  count = len(ans)

  print(count)

  

def input_list():

  return list(map(int, input().split()))



def input_list_str():

  return list(map(str, input().split()))



def lcm_base(x, y):

    return (x * y) // fractions.gcd(x, y)



def lcm_list(numbers):

    return reduce(lcm_base, numbers, 1)



def gcd(*numbers):

    return reduce(fractions.gcd, numbers)



def gcd_list(numbers):

    return reduce(fractions.gcd, numbers)



# 2で割り切れる回数

def divide_two(arg):

  c = 0

  while True:

    if c >= 2:

      break

    if arg % 2 != 0:

      break

    arg //= 2

    c += 1

  return c 



import math

import fractions

from functools import reduce

main()
import collections

n = int(eval(input()))
r = []
for i in range(n):
    r.append(int(eval(input())))
c = collections.Counter(r)
count = 0
for key, v in list(c.items()):
    if v % 2 != 0:
        count += 1
print(count)

def main():
    n = int(eval(input()))
    ans = {}
    for i in range(n):
        num = int(eval(input()))
        if num in ans:
            del ans[num]
        else:
            ans[num] = True
    count = len(ans)
    print(count)


def input_list():
    return list(map(int, input().split()))


def input_list_str():
    return list(map(str, input().split()))


def lcm_base(x, y):
    return (x * y) // fractions.gcd(x, y)


def lcm_list(numbers):
    return reduce(lcm_base, numbers, 1)


def gcd(*numbers):
    return reduce(fractions.gcd, numbers)


def gcd_list(numbers):
    return reduce(fractions.gcd, numbers)


# 2で割り切れる回数
def divide_two(arg):
    c = 0
    while True:
        if c >= 2:
            break
        if arg % 2 != 0:
            break
        arg //= 2
        c += 1
    return c


import math
import fractions
from functools import reduce

main()

-import collections +def main(): +    n = int(eval(input())) +    ans = {} +    for i in range(n): +        num = int(eval(input())) +        if num in ans: +            del ans[num] +        else: +            ans[num] = True +    count = len(ans) +    print(count) -n = int(eval(input())) -r = [] -for i in range(n): -    r.append(int(eval(input()))) -c = collections.Counter(r) -count = 0 -for key, v in list(c.items()): -    if v % 2 != 0: -        count += 1 -print(count) + +def input_list(): +    return list(map(int, input().split())) + + +def input_list_str(): +    return list(map(str, input().split())) + + +def lcm_base(x, y): +    return (x * y) // fractions.gcd(x, y) + + +def lcm_list(numbers): +    return reduce(lcm_base, numbers, 1) + + +def gcd(*numbers): +    return reduce(fractions.gcd, numbers) + + +def gcd_list(numbers): +    return reduce(fractions.gcd, numbers) + + +# 2で割り切れる回数 +def divide_two(arg): +    c = 0 +    while True: +        if c >= 2: +            break +        if arg % 2 != 0: +            break +        arg //= 2 +        c += 1 +    return c + + +import math +import fractions +from functools import reduce + +main()