#include #include using namespace std; int main() { int n, a, cnt = 0; map table; cin >> n; for(int i=0;i> a; if(table.find(a) == table.end()){ table[a] = 1; }else{ ++table[a]; } } for(map::iterator it=table.begin();it!=table.end();++it){ if((*it).second == 1)++cnt; } cout << cnt << endl; return 0; }