#include using namespace std; #define rep(i,a,b) for(int i=a;i> N; map cnt; rep(i, 0, N) { int A; cin >> A; cnt[A]++; } int ans = 0; for (auto p : cnt) if (p.second == 1) ans++; cout << ans << endl; }