n=int(eval(input()))

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

a.sort()

dict = {}

count = 0

for i in range(n):

  k = a[i]

  if (k in dict):

    count-=dict[k]

    dict[k]=1-dict[k]

    count+=dict[k]

  else:

    dict[k]=1

    count+=1

print(count)
from collections import Counter



n=int(eval(input()))

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

c = Counter(a)

count = 0

for i in list(c.keys()):

  count += c[i]%2

print(count)
n = int(eval(input()))
a = [eval(input()) for _ in range(n)]
a.sort()
dict = {}
count = 0
for i in range(n):
    k = a[i]
    if k in dict:
        count -= dict[k]
        dict[k] = 1 - dict[k]
        count += dict[k]
    else:
        dict[k] = 1
        count += 1
print(count)

from collections import Counter

n = int(eval(input()))
a = [eval(input()) for _ in range(n)]
c = Counter(a)
count = 0
for i in list(c.keys()):
    count += c[i] % 2
print(count)

+from collections import Counter + -a.sort() -dict = {} +c = Counter(a) -for i in range(n): -    k = a[i] -    if k in dict: -        count -= dict[k] -        dict[k] = 1 - dict[k] -        count += dict[k] -    else: -        dict[k] = 1 -        count += 1 +for i in list(c.keys()): +    count += c[i] % 2