#include<iostream>
using namespace std;
int main(void)
{
	int i, j, n;
	static int count=0;
	int *a;
	cin >> n;
	a = new int[n];
	for (i = 0; i < n; i++)
	{
		cin >> a[i];
		for (j = 0; j < i; j++)
		{
			if (a[j] == a[i])
			{
				a[i] = 0;
				a[j] = 0;
				count--;
				break;
			}
		}
		if (j == i)
			count++;
	}
	cout << count;
	delete[] a;
	system("pause");
}