from collections import defaultdict



def solve():

    dic = defaultdict(int)

    n = int(eval(input()))

    ans = 0

    for _ in range(n):

        a = int(eval(input()))

        dic[a] = (dic[a] + 1) % 2

    print((sum(dic.values())))



if __name__ == '__main__':

    solve()
n = int(eval(input()))

s = set()

for _ in range(n):

    s ^= {eval(input())}

print((len(s)))
from collections import defaultdict


def solve():
    dic = defaultdict(int)
    n = int(eval(input()))
    ans = 0
    for _ in range(n):
        a = int(eval(input()))
        dic[a] = (dic[a] + 1) % 2
    print((sum(dic.values())))


if __name__ == "__main__":
    solve()

n = int(eval(input()))
s = set()
for _ in range(n):
    s ^= {eval(input())}
print((len(s)))

-from collections import defaultdict - - -def solve(): -    dic = defaultdict(int) -    n = int(eval(input())) -    ans = 0 -    for _ in range(n): -        a = int(eval(input())) -        dic[a] = (dic[a] + 1) % 2 -    print((sum(dic.values()))) - - -if __name__ == "__main__": -    solve() +n = int(eval(input())) +s = set() +for _ in range(n): +    s ^= {eval(input())} +print((len(s)))