#include #include using namespace std; int main(void) { int N, tmp, ans; map mp; cin >> N; for(int i = 0; i < N; i++) { cin >> tmp; auto itr = mp.find(tmp); if(itr != mp.end()) { mp[itr->first] = mp[itr->first] + 1; } else { mp[tmp] = 1; } } for(auto itr = mp.begin(); itr != mp.end(); itr++) { if(itr->second == 1) ans++; } cout << ans << endl; return 0; }