#include "bits/stdc++.h" using namespace std; int main() { int N, A, count = 0; map mp; cin >> N; for (int i = 0; i < N; i++) { cin >> A; if (mp[A] == 0) count++; else if (mp[A] == 1) count--; mp[A]++; } cout << count << endl; }