#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
  int N;
  cin>>N;
  map<int,int> mp;
  while(N--){
    int a;
    cin>>a;
    mp[a]++;
  }
  int ans=0;
  for(auto p:mp)
    if(p.second%2)ans++;
  cout<<ans<<endl;
}
#include <bits/stdc++.h>
using namespace std;

int main(){
	int n,x;
	cin>>n;
	vector <int> v;
	for (int i=0;i<n;i++){
		cin>>x;
		v.push_back(x);
	}
	sort(v.begin(),v.end());
	
	/*
	for(int i=0;i<n;i++){
		cout<<v[i]<<" ";
	}
	*/
	int duplicate=0,no=0;
	for (int i=0;i<n;){
		if (v[i]==v[i+1]){
			duplicate++;
			i+=2;
		}
		else{
			i++;
			no++;
		}		
	}
	cout<<no<<endl;
	
	return 0;
}