def myAnswer(N:int,dic:dict) -> int:

   ans = 0

   for a in list(dic.values()):

      if(a % 2 == 1):

         ans += 1

   return ans



def modelAnswer():

   return

def main():

   N = int(eval(input()))

   dic = {}

   for _ in range(N):

      a = int(eval(input()))

      if(a in list(dic.keys())):

         dic[a]+=1

      else:

         dic[a]=1

   print((myAnswer(N,dic)))

if __name__ == '__main__':

   main()
import sys

input = sys.stdin.readline



def myAnswer(N:int,dic:dict) -> int:

   ans = 0

   for a in list(dic.values()):

      if(a % 2 == 1):

         ans += 1

   return ans



def modelAnswer():

   return

def main():

   N = int(eval(input()))

   dic = {}

   for _ in range(N):

      a = int(eval(input()))

      if(a in list(dic.keys())):

         dic[a]+=1

      else:

         dic[a]=1

   print((myAnswer(N,dic)))

if __name__ == '__main__':

   main()
def myAnswer(N: int, dic: dict) -> int:
    ans = 0
    for a in list(dic.values()):
        if a % 2 == 1:
            ans += 1
    return ans


def modelAnswer():
    return


def main():
    N = int(eval(input()))
    dic = {}
    for _ in range(N):
        a = int(eval(input()))
        if a in list(dic.keys()):
            dic[a] += 1
        else:
            dic[a] = 1
    print((myAnswer(N, dic)))


if __name__ == "__main__":
    main()

import sys

input = sys.stdin.readline


def myAnswer(N: int, dic: dict) -> int:
    ans = 0
    for a in list(dic.values()):
        if a % 2 == 1:
            ans += 1
    return ans


def modelAnswer():
    return


def main():
    N = int(eval(input()))
    dic = {}
    for _ in range(N):
        a = int(eval(input()))
        if a in list(dic.keys()):
            dic[a] += 1
        else:
            dic[a] = 1
    print((myAnswer(N, dic)))


if __name__ == "__main__":
    main()

+import sys + +input = sys.stdin.readline + +