#define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include #include #include #define rep(i,p,n) for(int i=p;i using namespace std; int main() { int n[100001] = { 0 }; int nn; cin >> nn; for (int i = 0; i < nn; i++) { int num; cin >> num; n[num]++; } int count = 0; for (int i = 0; i < 100000; i++) { if (n[i] == 1)count++; } cout << count << endl; return 0; }