from collections import Counter



N = int(eval(input()))

A = []



for _ in range(N):

    A.append(int(eval(input())))



ans = 0

counter = Counter(A)

for _, cnt in counter.most_common():

    if cnt % 2 == 1:

        ans += 1

        

print(ans)
from collections import Counter



def main():

    N = int(eval(input()))

    A = []



    for _ in range(N):

        A.append(int(eval(input())))



    ans = 0

    counter = Counter(A)

    for _, cnt in counter.most_common():

        if cnt % 2 == 1:

            ans += 1



    print(ans)

    

main()
from collections import Counter

N = int(eval(input()))
A = []
for _ in range(N):
    A.append(int(eval(input())))
ans = 0
counter = Counter(A)
for _, cnt in counter.most_common():
    if cnt % 2 == 1:
        ans += 1
print(ans)

from collections import Counter


def main():
    N = int(eval(input()))
    A = []
    for _ in range(N):
        A.append(int(eval(input())))
    ans = 0
    counter = Counter(A)
    for _, cnt in counter.most_common():
        if cnt % 2 == 1:
            ans += 1
    print(ans)


main()

-N = int(eval(input())) -A = [] -for _ in range(N): -    A.append(int(eval(input()))) -ans = 0 -counter = Counter(A) -for _, cnt in counter.most_common(): -    if cnt % 2 == 1: -        ans += 1 -print(ans) + +def main(): +    N = int(eval(input())) +    A = [] +    for _ in range(N): +        A.append(int(eval(input()))) +    ans = 0 +    counter = Counter(A) +    for _, cnt in counter.most_common(): +        if cnt % 2 == 1: +            ans += 1 +    print(ans) + + +main()