#include using namespace std; int main() { int n,a,ans=0; map m; cin>>n; for(int i=0;i>a; m[a]++; } for(auto t=m.begin();t!=m.end();t++)if(t->second==1)ans++; cout<