#include <cstdio>
#include <vector>
#include <set>
#include <algorithm>
#include <iostream>
#include <string>
#define  debug	0
#define  MAXN  512
using namespace std;
int N;
bool hashTable[MAXN]={false};
int id2hashvalue(int n)
{	int hash=0;
	while(n>0)
	{
		hash+=n%10;
		n/=10;
	}
	return hash;
}
int main()
{				
#if debug 
freopen("data.txt","r",stdin);
#endif
	scanf("%d",&N);
	for(int i=1;i<=N;i++) 
	{	int number;
		scanf("%d",&number);
		number=id2hashvalue(number);
		hashTable[number] = !hashTable[number];
	}
	int cnt=0;
	for(int i=0;i<MAXN;i++)
	{
		if(hashTable[i])cnt++;
	}
	printf("%d\n",cnt);
}
