#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; #define MOD 1000000007 int main() { int n; cin >> n; map mp; for (int i = 0; i < n; ++i) { int a; cin >> a; mp[a]++; } int ans = 0; for (auto a : mp) { ans += (a.second == 1); } cout << ans << endl; return 0; }