#include #include #include #include #include #include #include using namespace std; #define diff(x,y) ((x > y) ? (x - y) : (y - x)) #define us(x) (x > 0) ? x : x * -1 #define lli long long int int main() { int n, x = 0; cin >> n; vector ans(n,true); vector a(n); for (int i = 0; i < n; i++) { cin >> a[i]; } sort(a.begin(), a.end()); for (int i = 0; i < n - 1; i++) { if (a[i] == a[i + 1]) { ans[i] = false; ans[i + 1] = false; } } for (int i = 0; i < n; i++) { if (ans[i]) x++; } cout << x << endl; return 0; }