#include using namespace std; int main() { int i; int X; int A; int N; int iCnt; map m; cin >> N; iCnt = 0; for( i = 0; i < N; i++ ) { cin >> A; X = ++m[ A ]; if( X == 1 ) iCnt++; else if( X == 2 ) iCnt--; } cout << iCnt << endl; return 0; }