n = int(eval(input()))

a = list(int(eval(input())) for _ in range(n))

d = {}

for i in range(n):

    d[a[i]] = d.get(a[i], 0) + 1

ans = 0

for v in list(d.values()):

    if v % 2 == 1:

        ans += 1

print(ans)
def main():

    from collections import Counter

    import sys



    input = sys.stdin.readline



    N = int(eval(input()))  # <= 10**5

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

    ctr = Counter(a)



    ans = 0

    for cnt in list(ctr.values()):

        ans += cnt % 2

    print(ans)





if __name__ == '__main__':

    main()



# import sys

#

# sys.setrecursionlimit(10 ** 7)

#

# input = sys.stdin.readline

# rstrip()

# int(input())

# map(int, input().split())

n = int(eval(input()))
a = list(int(eval(input())) for _ in range(n))
d = {}
for i in range(n):
    d[a[i]] = d.get(a[i], 0) + 1
ans = 0
for v in list(d.values()):
    if v % 2 == 1:
        ans += 1
print(ans)

def main():
    from collections import Counter
    import sys

    input = sys.stdin.readline
    N = int(eval(input()))  # <= 10**5
    a = [int(eval(input())) for _ in range(N)]
    ctr = Counter(a)
    ans = 0
    for cnt in list(ctr.values()):
        ans += cnt % 2
    print(ans)


if __name__ == "__main__":
    main()
# import sys
#
# sys.setrecursionlimit(10 ** 7)
#
# input = sys.stdin.readline
# rstrip()
# int(input())
# map(int, input().split())

-n = int(eval(input())) -a = list(int(eval(input())) for _ in range(n)) -d = {} -for i in range(n): -    d[a[i]] = d.get(a[i], 0) + 1 -ans = 0 -for v in list(d.values()): -    if v % 2 == 1: -        ans += 1 -print(ans) +def main(): +    from collections import Counter +    import sys + +    input = sys.stdin.readline +    N = int(eval(input()))  # <= 10**5 +    a = [int(eval(input())) for _ in range(N)] +    ctr = Counter(a) +    ans = 0 +    for cnt in list(ctr.values()): +        ans += cnt % 2 +    print(ans) + + +if __name__ == "__main__": +    main() +# import sys +# +# sys.setrecursionlimit(10 ** 7) +# +# input = sys.stdin.readline +# rstrip() +# int(input()) +# map(int, input().split())