#include #include using namespace std; int main() { map mp; int n; cin >> n; for (int i = 0; i < n; i++) { int temp; cin >> temp; auto itr = mp.find(temp); if (itr == mp.end()) { mp[temp] = true; } else { mp[temp] = false; } } int ans = 0; for (auto itr = mp.begin(); itr != mp.end(); itr++) { if (itr -> second) { ans++; } } cout << ans << endl; return 0; }