#include using namespace std; int main(){ int input; map mp; cin >> input; while(cin >> input) ++mp[input]; cout << count_if(mp.begin(), mp.end(), [](decltype(mp)::const_reference p){return p.second == 1;}) << endl; }