#include #include using namespace std; #define rep(i,n) for(int i = 0; i < (n); i++) #define rep2(i,n) for(int i = 1; i <= (n); i++) int main(){ int cnt = 0; vectorv(1000000,0); int n = 0; cin >> n; vectora(n,0); rep(i,n){ cin >> a[i]; } rep(i,n){ v[a[i]] += 1; } rep2(i,n){ if(v[i] == 1){cnt+=1;} } cout << cnt << endl; return 0; }