#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { map m; set s; int N, A; cin >> N; for (int i = 0; i < N; i++) { cin >> A; if (s.find(A) == s.end()) { s.insert(A); m[A] = 1; }else{ m[A]++; } } int cnt = 0; set::iterator it = s.begin(); while (it != s.end()) { if (m[(*it)] == 1) cnt++; it++; } cout << cnt << endl; return 0; }