from collections import Counter

def main():

    n = int(eval(input()))

    l1 = []

    for _ in range(n):

        l1.append(eval(input()))

    l1c = Counter(l1)

    l1c2 = [c for c in l1c if l1c[c]%2 != 0]

    print((len(l1c2)))



if __name__ == '__main__':

    main()

import sys

read = sys.stdin.read

readlines = sys.stdin.readlines

from collections import Counter

def main():

    n = eval(input())

    a = tuple(map(int, readlines()))

    ac = Counter(a)

    ac2 = [c % 2 for c in list(ac.values())]

    r = sum(ac2)

    print(r)

if __name__ == '__main__':

    main()

from collections import Counter


def main():
    n = int(eval(input()))
    l1 = []
    for _ in range(n):
        l1.append(eval(input()))
    l1c = Counter(l1)
    l1c2 = [c for c in l1c if l1c[c] % 2 != 0]
    print((len(l1c2)))


if __name__ == "__main__":
    main()

import sys

read = sys.stdin.read
readlines = sys.stdin.readlines
from collections import Counter


def main():
    n = eval(input())
    a = tuple(map(int, readlines()))
    ac = Counter(a)
    ac2 = [c % 2 for c in list(ac.values())]
    r = sum(ac2)
    print(r)


if __name__ == "__main__":
    main()

+import sys + +read = sys.stdin.read +readlines = sys.stdin.readlines -    n = int(eval(input())) -    l1 = [] -    for _ in range(n): -        l1.append(eval(input())) -    l1c = Counter(l1) -    l1c2 = [c for c in l1c if l1c[c] % 2 != 0] -    print((len(l1c2))) +    n = eval(input()) +    a = tuple(map(int, readlines())) +    ac = Counter(a) +    ac2 = [c % 2 for c in list(ac.values())] +    r = sum(ac2) +    print(r)