N = int(eval(input()))



a = [int(eval(input())) for i in range(N)]



a = sorted(a)



t = 0

b = False

ans = 0

for i in range(N):

    if not a[i] == t:

        if b:

            ans += 1

        t = a[i]

        b = True

    else:

        if b:

            b = False

        else:

            b = True

if b:

    ans += 1





print(ans)
from collections import Counter



N = int(eval(input()))

A = [int(eval(input())) for i in range(N)]



c = Counter(A)



ans = 0

for a, b in list(c.items()):

    if b % 2 == 1:

        ans += 1



print(ans)
N = int(eval(input()))
a = [int(eval(input())) for i in range(N)]
a = sorted(a)
t = 0
b = False
ans = 0
for i in range(N):
    if not a[i] == t:
        if b:
            ans += 1
        t = a[i]
        b = True
    else:
        if b:
            b = False
        else:
            b = True
if b:
    ans += 1
print(ans)

from collections import Counter

N = int(eval(input()))
A = [int(eval(input())) for i in range(N)]
c = Counter(A)
ans = 0
for a, b in list(c.items()):
    if b % 2 == 1:
        ans += 1
print(ans)

+from collections import Counter + -a = [int(eval(input())) for i in range(N)] -a = sorted(a) -t = 0 -b = False +A = [int(eval(input())) for i in range(N)] +c = Counter(A) -for i in range(N): -    if not a[i] == t: -        if b: -            ans += 1 -        t = a[i] -        b = True -    else: -        if b: -            b = False -        else: -            b = True -if b: -    ans += 1 +for a, b in list(c.items()): +    if b % 2 == 1: +        ans += 1