# ABC073C - Write and Erase

import sys

input = sys.stdin.readline



n = int(eval(input()))

arr = set()

for _ in range(n):

    m = int(eval(input()))

    if m in arr:

        arr.remove(m)

    else:

        arr.add(m)

print((len(arr)))
# ABC073C - Write and Erase

def main():

    N, *A = list(map(int, open(0).read().split()))

    store = set()

    for a in A:

        if a in store:

            store.remove(a)

        else:

            store.add(a)

    ans = len(store)

    print(ans)





if __name__ == "__main__":

    main()
# ABC073C - Write and Erase
import sys

input = sys.stdin.readline
n = int(eval(input()))
arr = set()
for _ in range(n):
    m = int(eval(input()))
    if m in arr:
        arr.remove(m)
    else:
        arr.add(m)
print((len(arr)))

# ABC073C - Write and Erase
def main():
    N, *A = list(map(int, open(0).read().split()))
    store = set()
    for a in A:
        if a in store:
            store.remove(a)
        else:
            store.add(a)
    ans = len(store)
    print(ans)


if __name__ == "__main__":
    main()

-import sys +def main(): +    N, *A = list(map(int, open(0).read().split())) +    store = set() +    for a in A: +        if a in store: +            store.remove(a) +        else: +            store.add(a) +    ans = len(store) +    print(ans) -input = sys.stdin.readline -n = int(eval(input())) -arr = set() -for _ in range(n): -    m = int(eval(input())) -    if m in arr: -        arr.remove(m) -    else: -        arr.add(m) -print((len(arr))) + +if __name__ == "__main__": +    main()