#include<iostream>
#include<algorithm>
using namespace std;


int main() {
	int n;
	cin >> n;
	int x[100000];
	int k;
	for (int i = 0; i < n; i++)cin >> x[i];
	sort(x, x + n);
	k = x[0];
	int num = 1;
	int sum = 0;
	for (int i = 0; i < n; i++) {
		if (x[i] == k)num++;
		else {
			if (num % 2)sum++;
			num = 1;
		}
	}
	cout << sum;
	return 0;
}