#!/usr/bin/env python3 #fileencoding: utf-8 N = int(input()) dic = {} for i in input().strip().split(" "): if i in dic: dic[i] = False else: dic[i] = True count = 0 for k,v in dic.items(): if v == True: count += 1 print(count)