#include using namespace std; //int Yuki0182() 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; switch( ++m[ A ] ) { case 1: iCnt++; break; case 2: iCnt--; } } cout << iCnt << endl; return 0; }