#include #include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; unordered_map hash; for(int i = 0; i < n; ++i){ int temp; cin >> temp; ++hash[temp]; } int sum = 0; for(auto &data : hash){ sum += (data.second == 1); } cout << sum << endl; }