from sys import stdin

from collections import Counter



n, *a = (int(x) for x in stdin.read().split())



count = 0

for v in list(Counter(a).values()):

    if v % 2 == 1: count += 1



print(count)
import sys

from collections import Counter



n, *a = list(map(int, sys.stdin.read().split()))



def main():

    res = 0

    for c in list(Counter(a).values()):

        res += c & 1



    return res



if __name__ == '__main__':

    ans = main()

    print(ans)
from sys import stdin
from collections import Counter

n, *a = (int(x) for x in stdin.read().split())
count = 0
for v in list(Counter(a).values()):
    if v % 2 == 1:
        count += 1
print(count)

import sys
from collections import Counter

n, *a = list(map(int, sys.stdin.read().split()))


def main():
    res = 0
    for c in list(Counter(a).values()):
        res += c & 1
    return res


if __name__ == "__main__":
    ans = main()
    print(ans)

-from sys import stdin +import sys -n, *a = (int(x) for x in stdin.read().split()) -count = 0 -for v in list(Counter(a).values()): -    if v % 2 == 1: -        count += 1 -print(count) +n, *a = list(map(int, sys.stdin.read().split())) + + +def main(): +    res = 0 +    for c in list(Counter(a).values()): +        res += c & 1 +    return res + + +if __name__ == "__main__": +    ans = main() +    print(ans)