#include #define fastIO (cin.tie(0), cout.tie(0), ios::sync_with_stdio(false)) using namespace std; int main() { fastIO; int n; cin >> n; map mp; for (int i = 0; i < n; ++i) { int num; cin >> num; if (mp.find(num) != mp.end()) { mp[num]++; } else { mp[num] = 1; } } int cnt = 0; for (const auto key : mp) { if (key.second == 1) cnt++; } cout << cnt << '\n'; return 0; }