

if __name__ == '__main__':

    N=int(eval(input()))

    sheet=[]

    for i in range(N):

        temp=int(eval(input()))

        sheet.append(temp)

    sheet.sort()

    count=0

    i=0

    while i<N:

        s=sheet[i]

        j=i

        while i<N and sheet[i]==s:

            i+=1

        d=i-j

        if d%2==1:

            count+=1



    print(count)


if __name__ == '__main__':

    N=int(eval(input()))

    sheet=set()

    for i in range(N):

        temp=int(eval(input()))

        if temp in sheet:

            sheet.remove(temp)

        else:

            sheet.add(temp)

    print((len(sheet)))

if __name__ == "__main__":
    N = int(eval(input()))
    sheet = []
    for i in range(N):
        temp = int(eval(input()))
        sheet.append(temp)
    sheet.sort()
    count = 0
    i = 0
    while i < N:
        s = sheet[i]
        j = i
        while i < N and sheet[i] == s:
            i += 1
        d = i - j
        if d % 2 == 1:
            count += 1
    print(count)

if __name__ == "__main__":
    N = int(eval(input()))
    sheet = set()
    for i in range(N):
        temp = int(eval(input()))
        if temp in sheet:
            sheet.remove(temp)
        else:
            sheet.add(temp)
    print((len(sheet)))

-    sheet = [] +    sheet = set() -        sheet.append(temp) -    sheet.sort() -    count = 0 -    i = 0 -    while i < N: -        s = sheet[i] -        j = i -        while i < N and sheet[i] == s: -            i += 1 -        d = i - j -        if d % 2 == 1: -            count += 1 -    print(count) +        if temp in sheet: +            sheet.remove(temp) +        else: +            sheet.add(temp) +    print((len(sheet)))