#include #include #include #include using namespace std; int main(){ int n; vector A(100001, 0); cin >> n; int sum = 0; for (int i = 0; i < n; ++i){ int a; cin >> a; ++A[a]; } for (int i = 1; i <= n; ++i){ if (A[i] == 1){ ++sum; } } cout << sum << endl; return 0; }